How to find the nth highest salary or number in a table?