Amdocs interview question

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

Interview Answer

Anonymous

Mar 5, 2020

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