Suppose that you are given the following simple database table called Employee that has 2 columns named Employee ID and Salary:
Employee Employee ID S
Here change n value according your requirement:
n
SELECT top 1 amount FROM ( SELECT DISTINCT top n amount FROM payment ORDER BY amount DESC ) AS temp ORDER BY amount