Check out example codes for "n highest salary in sql". It will help you in understanding the concepts better.

Code Example 1

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP N salary
FROM #Employee
ORDER BY salary DESC
) AS temp
ORDER BY salary

Code Example 2

SELECT salary FROM Employee ORDER BY salary DESC LIMIT N-1, 1

Learn ReactJs, React Native from akashmittal.com