SK interview question

write query for second highest salary in sql reverse a no./fibo/factorial basic java qns