DEV Community

Programmers Quickie

SQL Window Functions (OVER, PARTITION BY)

In the SQL database query language, window functions allow access to data in the records right before and after the current record. A window function defines a frame or window of rows with a given length around the current row, and performs a calculation across the set of data in the window

Episode source