Open BananMoon opened 3 months ago
176. Second Highest Salary 두번째로 큰 salary를 구하라는 것이기 때문에 두번째 순서를 고르는게 아닌, 첫번째로 큰 것 다음으로 큰 salary 를 구해야한다는 생각으로 접근해야 한다. 177. Nth Highest Salary
176. Second Highest Salary 두번째로 큰 salary를 구하라는 것이기 때문에 두번째 순서를 고르는게 아닌, 첫번째로 큰 것 다음으로 큰 salary 를 구해야한다는 생각으로 접근해야 한다.
177. Nth Highest Salary
176. Second Highest Salary
-- oracle SELECT MAX(salary) AS SecondHighestSalary FROM employee WHERE salary < (SELECT MAX(salary) FROM employee);