AirAsia Interview Question

How do you find the second highest value in a table? (SQL)

Interview Answers

Anonymous

Dec 22, 2018

select * from (select *,row_number() over order by colA as row from table) a where row = 2

Anonymous

Apr 5, 2017

They replied you 1.5 months after interview?

5