CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
DECLARE M INT;
# Write your MySQL query statement below.
SELECT Salary FROM Employee WHERE Salary=(SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT M,1);
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.