I tried it and found a kind of solution. Keep in mind there could be different solutions for this but the one I am giving here is by using ROW_NUMBER() function.
So here we go:
Salary Table:
Queries:
Ordering salary in ascending order.Taking out 5th row out of the result of above query:
As you can see it is very easy to get nth record by just using ROW_NUMBER() function.