how to find nth highest salary

Answer Posted / ankur bakliwal

I think this should work -


select top 1 salary from employee where salary in (select
distinct
top n salary from employee order by salary desc) order by
salary asc

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration

585


What is transaction server auto commit?

658


Why do we use stored procedures in sql server?

589


why would you call update statistics? : Sql server database administration

665


Explain triggers in sql?

625






What is the filtered index?

676


What do you mean by sql server agent?

631


What is SQL Azure Firewall?

124


How display code or Text of Stored Procedure using Sql query in Sql Server ?

705


What is a rollup clause?

624


What are commit and rollback in sql?

659


What is side by side migration in sql server?

650


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

1663


Is the primary key column of a table an index in ms sql server?

622


User wants only to display only pdf as export option in report manager. How to achieve this?

187