how to find nth highest salary
Answer Posted / aravinda
try with this query you will get desired position salary.
Select Salary From Employees a Where 1=(
Select Count(Distinct Salary) From Employees b
Where a.Salary <= b.Salary );
just replace where clause number for desired position. ,2,3,4
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain transaction server isolation?
How do I create a trace in sql server?
where the connection string store in the database
What is the default value of an integer data type in sql server 2005?
what are isolation levels? : Sql server database administration
What is service broker?
What is a dataset and what are the different types of datasets?
What is encryption key?
What is store procedure?
What are the aggregate and scalar functions?
What happens if null values are involved in boolean operations?
Why would you call update statistics?
Do you know query execution plan?
What are trace files?
What purpose does the model database server?