generate_series
generate_series(start, stop, step) makes a row per step. LEFT JOIN it to your data so empty days still show up with 0.
task
One row per day of March 2026 with the order count, zeros included. Return the day and the count.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
generate_series(start, stop, step) makes a row per step. LEFT JOIN it to your data so empty days still show up with 0.
One row per day of March 2026 with the order count, zeros included. Return the day and the count.