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
Can we add our custom code in ssis?
How can we get count of the number of records in a table?
When columns are added to existing tables, what do they initially contain?
What are filegroups in sql server?
What are the three different part of rdl file explain them?
Difference between primary key and clustered index?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
What is update locks?
What are the advantages of policy management?
What is buffer cash and log cache in sql server?
How to backup SQL Server Reporting Services ?
What is the difference between NOROW and LOCKROW?
How to create median function?
Explain the properties of a relational table?
Do you think BCNF is better than 2NF & 3NF? Why?