Sign in to run and submit your work
Reading is open to everyone. Running code and saving drafts need an account so your work is yours and comes back on your next visit.
or
CODE WORKSPACE
Return event_day and events grouped by date(event_time).
Result columns · in this order
event_dayeventsHow to approach it
Use date(event_time) as the reporting bucket.
Sample input
| event_id | event_time |
|---|---|
| 1 | 2026-01-01 03:30:00 |
| 2 | 2026-01-01 04:10:00 |
| 3 | 2026-01-01 22:15:00 |
| 4 | 2026-01-02 00:30:00 |
| 5 | 2026-01-02 05:00:00 |
| 6 | 2026-01-03 18:00:00 |
6 rows — all rows shown.
Expected output
| event_day | events |
|---|---|
| 2026-01-01 | 3 |
| 2026-01-02 | 2 |
| 2026-01-03 | 1 |
3 rows — all rows shown.
Constraints
Use event_time, not ingested_at. Order by event_day.
Expected skills
Timestamp bucketing and grouped event counts.
Submit for review to find out what your query gets right, what it gets wrong, and how it compares with the best working query for this exercise.
This scenario runs a full workspace — editor, canvas and results side by side. It needs a laptop or desktop to be usable. Open this page on a bigger screen to start building.