how to find nth highest salary
Answer Posted / neeraj kumar
select top(1) salary from(
select distinct nth salary
from emp
order by salary desc)a
order by salary
In this answer you can put any position in place of nth then you find the salary.
If you are satisfied this answer then reply me please.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to transfer data from a cursor to variables with a "fetch" statement?
Explain foreign key in sql server?
Can You Use Data Mining Models In Ssrs?
Tell me what is fill factor?
What is the difference between row_number and dense_rank?
What is simple indexing method?
What is ems sql management studio? : sql server management studio
i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.
How to write character string constants or literals in ms sql server?
What does null mean?
Can I work with several databases simultaneously? : sql server management studio
What is the sql case statement used for?
How to enable tcp/ip protocol on a sql server?
What are the types of indexing?
How to find the service pack installed? : sql server database administration