PostgreSQL - Window Functions in PostgreSQL
Given the table
employees with columns department and salary, what will this query return?SELECT department, salary, RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS rank FROM employees;
