Skip to content

Commit

Permalink
Update docs/sql/functions/window_functions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenwolfers authored Nov 26, 2024
1 parent 149ecbe commit 452e2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql/functions/window_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ This distance can either be specified as an integral number of `ROWS`
or as a `RANGE` delta expression.
For a `RANGE` specification, there must be only one ordering expression,
and it has to support addition and subtraction (i.e., numbers or `INTERVAL`s).
The default frame is from `UNBOUNDED PRECEDING` to `UNBOUNDED FOLLOWING` for all window functions, except it is `UNBOUNDED PRECEDING` to `CURRENT ROW` when an `ORDER BY` clause is present. If the `OVER` specification contains an `ORDER BY` clause or from `UNBOUNDED PRECEDING TO UNBOUNDED FOLLOWING` otherwise.
The default frame is from `UNBOUNDED PRECEDING` to `UNBOUNDED FOLLOWING` for all window functions, except it is `UNBOUNDED PRECEDING` to `CURRENT ROW` when an `ORDER BY` clause is present.
It is invalid for a frame to start after it ends.
Using the [`EXCLUDE` clause](#exclude-clause), rows around the current row can be excluded from the frame.

Expand Down

0 comments on commit 452e2f0

Please sign in to comment.