MySQL Solution
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n    SET N = N - 1;\n  RETURN (\n      SELECT DISTINCT salary\n      FROM Employee\n      ORDER 
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n    SET N = N - 1;\n  RETURN (\n      SELECT DISTINCT salary\n      FROM Employee\n      ORDER BY salary DESC\n      LIMIT 1 OFFSET N\n      \n  );\nEND\n```\n
['MySQL']