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
Can We Use Data-grids For Our Report In Ssrs?
What is relationship? What number of sorts of relationship are there?
What is the concept of optimization?
What are SSL and TSL protocols?
What is database white box testing?
What is store procedure?
How to rename an existing column with sql server management studio?
What is a view and what are its advantages?
What is @@error in sql?
What is the difference between ddl and dml?
Can you force a query to use a specific index?
What is standby servers? Explain types of standby servers.
Explain where clause?
Is it true, that there is no difference between a rule and a check constraint?
When would you use it?