Events per hour bucket (ClickHouse)
Events per hour bucket (ClickHouse)
Group events by the start of the hour of the ts timestamp (toStartOfHour) and, for each hour bucket, count the number of events. Return columns hour (start of hour) and events. Order by hour ascending.
Exemplo de resposta esperada
| hour | events |
|---|---|
| 2024-01-01 10:00:00 | 2 |
| 2024-01-01 11:00:00 | 1 |
| 2024-01-02 09:00:00 | 3 |
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
EntrarFocus radio
Paused · SomaFM · Fluid