Link Search Menu Expand Document

176. Second Highest Salary

Solution Code

MySQL

SELECT MAX(Salary) as 'SecondHighestSalary'
FROM Employee
WHERE Salary < (SELECT MAX(Salary) FROM Employee);

© 2023. All rights reserved.