Skip to content

Commit

Permalink
Time: 1064 ms (14.5%), Space: 0B (100%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
hovanhoa committed Oct 23, 2023
1 parent c81809a commit 6dc33e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 0177-nth-highest-salary/0177-nth-highest-salary.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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 N,1
);
END

0 comments on commit 6dc33e0

Please sign in to comment.