Window frame

Applies to: sql

A window frame defines which nearby rows a window function can see, such as all previous rows or the last 3 rows.

ROWS BETWEEN 2 PRECEDING AND CURRENT ROW

See also: window-function, order-by