Deloitte Interview Question

Second highest salary with SQL?

Interview Answer

Anonymous

Jun 7, 2017

SELECT name, MAX(salary) AS salary FROM employee WHERE salary < (SELECT MAX(salary) FROM employee);