Closed congr closed 5 years ago
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
SET N=N-1;
RETURN (
# Write your MySQL query statement below.
SELECT DISTINCT salary from Employee
ORDER BY salary DESC LIMIT 1 OFFSET N
);
END
https://leetcode.com/problems/nth-highest-salary/