리트코드(LeetCode) SQL 문제풀이 - 176. Second Highest Salary

2023. 1. 23. 20:22코딩테스트/리트코드(LeetCode) - SQL Study Plan

MySQL 문제 176. Second Highest Salary

select MAX(salary) as SecondHighestSalary 
    from Employee
    where salary NOT IN (select MAX(salary) from Employee)

 

728x90