CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
DECLARE M INT;
# Write your MySQL query statement below.
select distinct salary
from Employee ORDER BY salary DESC
Limit 1 offset M
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.