LIMIT OFFSET
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nDECLARE M INT;\nSET M=N-1;\n  RETURN (\n      SELECT DISTINCT Salary \n\t  FROM Employee \n\t  OR
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nDECLARE M INT;\nSET M=N-1;\n  RETURN (\n      SELECT DISTINCT Salary \n\t  FROM Employee \n\t  ORDER BY Salary DESC \n\t  LIMIT 1 OFFSET M\n  );\nEND
[]