AirAsia interview question

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

Interview Answers

Anonymous

22 Dec 2018

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

Anonymous

5 Apr 2017

They replied you 1.5 months after interview?

5