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