176. Second Highest Salary¶ SQL 1 2 3 4 5 6 7 8WITH RankedEmployees AS ( SELECT *, DENSE_RANK() OVER(ORDER BY salary DESC) AS `rank` FROM Employee ) SELECT MAX(salary) AS SecondHighestSalary FROM RankedEmployees WHERE `rank` = 2;