직원별로 월급이 두번째로 높은 직원의 월급을 출력하라
SELECT(SELECT DISTINCT salary
FROM Employee
ORDER BY salary DESC
LIMIT 1,1)
AS SecondHighestSalary
SELECT(SELECT DISTINCT salary
FROM Employee
ORDER BY salary DESC
LIMIT 1 OFFSET 1)
AS SecondHighestSalary
SELECT MAX(Salary) AS SecondHighestSalary
FROM Employee
WHERE Salary NOT IN (
SELECT MAX(Salary) FROM Employee
)