best simplest mysql solution - 177. Nth Highest Salary
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N = N-1;\n  RETURN (\n      SELECT DISTINCT(salary) from Employee order by salary DESC\n   
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N = N-1;\n  RETURN (\n      SELECT DISTINCT(salary) from Employee order by salary DESC\n      LIMIT 1 OFFSET N\n      \n  );\nEND\n\n#pls upvote if you find solution easy to undestand....!! Thanks..!!!\n```
['MySQL']