nice & clear solution. Memory: 0B, less than 100.00%
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nDECLARE M INT;\nSET M=N-1;\n  RETURN (\n      select DISTINCT Salary\n      from Employee\n 
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nDECLARE M INT;\nSET M=N-1;\n  RETURN (\n      select DISTINCT Salary\n      from Employee\n      order by Salary desc\n      limit M, 1\n      \n  );\nEND
['MySQL']