Amdocs interview question

Find the second highest salary among the given table. (SQL)

Interview Answer

Anonymous

5 Mar 2020

select name, max(salary) from employee where salary < (select max(salary) from employee);