CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
# Write your MySQL query statement below.
SELECT IFNULL((SELECT DISTINCT Salary
ORDER BY Salary DESC
LIMIT 1 OFFSET N), NULL)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.