limit and offset used
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n    set N = N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      select dis
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n    set 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      \n  );\nEND\n```
[]