MySQL Simple Solution
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN\nSET\n    N = N -1;\n\nRETURN (\n    SELECT\n        DISTINCT salary\n    FROM\n        employee\
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN\nSET\n    N = N -1;\n\nRETURN (\n    SELECT\n        DISTINCT salary\n    FROM\n        employee\n    ORDER BY\n        salary DESC\n    LIMIT\n        1 OFFSET N\n);\n\nEND\n```
['MySQL']