You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/use-cases/time-series/02_basic-operations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ ORDER BY hour ASC WITH FILL STEP toIntervalHour(1);
216
216
217
217
## Rolling time windows {#time-series-rolling-time-windows}
218
218
219
-
Sometimes, we don't want to deal with the start of intervals (like the start of the day or an hour) but window intervals.
219
+
Sometimes, we don't want to deal with the start of intervals (like the start of a day or an hour) but window intervals.
220
220
Let's say we want to understand the total hits for a window, not based on days but on a 24-hour period offset from 6 pm.
221
221
222
222
We can use the [`date_diff()`](/docs/sql-reference/functions/date-time-functions#timeDiff) function to calculate the difference between a reference time and each record's time.
0 commit comments