db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Truncate

date_trunc('month', ts) rounds a timestamp down to the start of its month. On a timestamptz it uses the session time zone, so pin the zone.

task

Orders per calendar month (UTC). Return the month start and the count.

hints