sqlite add tag
A "window function" calculates a value based on input from more than one row (like an aggregate function). The result is produced without grouping the source rows (**unlike** an aggregate function).

The input row set for the calculation, or "window", is defined by an `OVER` clause. If, and only if, an `OVER` clause is present, then the function is a window function. Otherwise it is an ordinary function (either aggregate or scalar).


* The optional `PARTITION BY` clause defines the set of rows to use as input (if not specified all rows are used as input).
* The optional `ORDER BY` clause defines the order in which the rows are input to the function.

# See Also

* [SQLite Documentation](
* [SQLite Tutorial](

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.