mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 23:07:08 +00:00
8 lines
190 B
SQL
8 lines
190 B
SQL
# Write your MySQL query statement below
|
|
SELECT
|
|
IFNULL(
|
|
(SELECT DISTINCT salary
|
|
FROM Employee
|
|
ORDER BY salary DESC
|
|
LIMIT 1 OFFSET 1),
|
|
NULL) as SecondHighestSalary |