PostgreSQL - Window Functions in PostgreSQL
What does the
ROW_NUMBER() OVER (PARTITION BY department ORDER BY salary DESC) window function do in a query?