Brainlag
  1. Library
  2. Concepts
  3. SQL

Window functions

Window functions add a ranking, a running total or a group total to every row without squashing the rows, using OVER, PARTITION BY and ORDER BY.

SQL12 minPremium

Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.