PostgreSQL - Window Functions in PostgreSQL
Identify the error in this query:
SELECT employee_id, department, RANK() OVER PARTITION BY department ORDER BY salary DESC FROM employees;
