Short || Simple || Easy
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n  RETURN\n  (\n      Select max(Salary) \n      from Employee E1\n      where N-1 = (Select cou
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n  RETURN\n  (\n      Select max(Salary) \n      from Employee E1\n      where N-1 = (Select count(distinct E2.Salary)\n                   from Employee E2\n                   where E1.Salary < E2.Salary)\n  );\nEND\n```
[]