Visits by Date
Traffic analytics is building a daily visits series. In a_events, count events where kind = 'visit', taking the date from ts. Return d and visits, sorted by d.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| d | visits |
|---|---|
| 2024-01-05 | 3 |
| 2024-01-06 | 2 |
| 2024-01-07 | 1 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in