Time: 422 ms (26.04%), Space: 0B (100.00%) - LeetHub

This commit is contained in:
Deven
2023-01-22 19:00:17 -05:00
parent 0bf0472821
commit 0ebf3dd4ab
@@ -0,0 +1,8 @@
# Write your MySQL query statement below
SELECT
IFNULL(
(SELECT DISTINCT salary
FROM Employee
ORDER BY salary DESC
LIMIT 1 OFFSET 1),
NULL) as SecondHighestSalary