My accepted simply solution.Any advising?
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\n    BEGIN\n        set N=N-1;\n      RETURN (\n          select distinct Salary from Employee order by S
    CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\n    BEGIN\n        set N=N-1;\n      RETURN (\n          select distinct Salary from Employee order by Salary desc limit N,1\n      );\n    END
[]