SELECT TOP 1 salary
FROM
(
SELECT DISTINCT TOP 3 salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salarythis code allows you to display second highest,third highest or any salary from table or any number from table
this code allows you to display second highest,third highest or any salary from table or any number from table
SELECT TOP 1 salary
FROM
(
SELECT DISTINCT TOP 3 salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary