How can I find the Nth highest salary in a table containing salaries in SQL Server?
SELECT * FROM (select distinct postalcode from Customers order by postalcode DESC) limit 4,1;
4 here means leave first 4 and show the next 1.
Try this it works for me.