You may use TOP 1 WITH TIES
here:
SELECT TOP 1 WITH TIES salary
FROM yourTable
WHERE salary BETWEEN 10000 AND 20000
ORDER BY salary DESC;
CLICK HERE to find out more related problems solutions.
You may use TOP 1 WITH TIES
here:
SELECT TOP 1 WITH TIES salary
FROM yourTable
WHERE salary BETWEEN 10000 AND 20000
ORDER BY salary DESC;
CLICK HERE to find out more related problems solutions.