SQL - Advanced Window Functions
Identify the error in this SQL query:
SELECT employee_id, NTH_VALUE(salary, 1) OVER (PARTITION BY department_id) FROM employees;
