how to find nth highest salary
Answer Posted / neeraj kumar
select top(1) Salary
from(select distinct top(n) Salary
from emp
order by Salary desc ) a
order by Salary
Note-you can find out any position salary through top(n).
n=1,2,3,4,5,6,7,8,9..................
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How would we use distinct statement? What is its use?
What is a natural primary key?
How do I create a trace in sql server?
What do you understand by the analysis services in sql server?
Explain iaas, paas and saas?
How to Check if table exists in sql server?
Which are the olap features?
What is surrogate key? : sql server analysis services, ssas
What is 2nf normalization?
Can you import Microsoft Excel data to SSRS?
How many levels of sp nesting is possible?
Difference between uniqe index and uniqe constraint?
What are different types of join?
Explain the concept of view and Types of views in SQL server?
What is the significance of master, tempdb and model databases?