Appinventiv interview question

3: Second highest salary ?

Interview Answer

Anonymous

Feb 19, 2018

Too simple if you use the sub query! SELECT MIN(EmpSalary) from ( SELECT EmpSalary from Employee ORDER BY EmpSalary DESC LIMIT 2 );

2