CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
DECLARE M INT;
# Write your MySQL query statement below.
select distinct Salary
order by Salary desc
limit M, 1) as getNthHighestSalary
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.