NTH highest salary
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N=N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      SELECT DISTINCT Sa
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N=N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT 1 OFFSET N \n  );\nEND
[]