SQL - Advanced Window Functions
What is wrong with this SQL query?
SELECT employee_id, NTH_VALUE(salary, -1) OVER (ORDER BY salary) AS nth_salary FROM Employees;
