SELECT MAX(EmpSalary) as 'EmpSalary' from tblEmployeeDetails
where Salary NOT IN
(
SELECT TOP n-1 (EmpSalary) from tblEmployeeDetails ORDER BY EmpSalary Desc
)
// 2nd
SELECT MAX(EmpSalary) as 'EmpSalary' from tblEmployeeDetails
where Salary NOT IN
(
SELECT TOP 1 (EmpSalary) from tblEmployeeDetails ORDER BY EmpSalary Desc
)
Result-14000
// 3nd
SELECT MAX(EmpSalary) as 'EmpSalary' from tblEmployeeDetails
where Salary NOT IN
(
SELECT TOP 2 (EmpSalary) from tblEmployeeDetails ORDER BY EmpSalary Desc
)
Result-13000