Fast and easy to understand mysql solution
``` CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN   SET N=N-1;   RETURN (       # Write your MySQL query statement below.       SELECT Salary    
```
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
  SET N=N-1;
  RETURN (
      # Write your MySQL query statement below.
      SELECT Salary
      FROM Employee
      GROUP BY Salary
      ORDER BY Salary DESC
      LIMIT 1 OFFSET N
      
  );
END
```
[]