GGK Tech interview question

query for 3rd highest salary, different queries