Bookings per month
date_trunc rounds a timestamp down to a unit such as a month, which gives a value you can group on.
task
For each month, give the month (first day, as month) and the number of bookings (bookings). Order by month.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
date_trunc rounds a timestamp down to a unit such as a month, which gives a value you can group on.
For each month, give the month (first day, as month) and the number of bookings (bookings). Order by month.