SQL window functions perform calculations across a set of rows related to the current row — its "window" — without collapsing the result set like GROUP BY does. Every window function uses an OVER() clause to define the window of rows it operates on.