[LeetCode] 176. Second Highest Salary
문제Write a solution to find the second highest distinct salary from the Employee table. If there is no second highest salary, return null (return None in Pandas). Employee 테이블에서 두번째로 높은 연봉을 출력한다. 만약 없다면 null을 출력한다. 쿼리SELECT MAX(a.salary) AS SecondHighestSalaryFROM ( SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) AS r FROM Employee..