Skip to content

Commit

Permalink
Time: 215 ms (91.26%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Oct 1, 2024
1 parent ea40527 commit 72a0212
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 0176-second-highest-salary/0176-second-highest-salary.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Write your MySQL query statement below

(SELECT DISTINCT salary AS SecondHighestSalary FROM Employee ORDER BY salary DESC LIMIT 1 OFFSET 1)
UNION
(SELECT NULL AS SecondHighestSalary)
LIMIT 1

0 comments on commit 72a0212

Please sign in to comment.