how to find nth highest salary
Answer Posted / suhail qaiser
SELECT TOP Nth salary
FROM (
SELECT TOP N salary
FROM emp
ORDER BY salary DESC
) TmpTable
ORDER BY salary ASC
| Is This Answer Correct ? | 38 Yes | 56 No |
Post New Answer View All Answers
What is the concept of optimization?
How to delete multiple rows with one delete statement in ms sql server?
What is proper subset of candidate key?
What is the Control Flow in SSIS
What are different types of statements that are supported by sql?
Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?
Can primary key be a foreign key?
What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas
When cursors are useful?
What is onf in normalization form?
What is PROJECTION Operation?
How to list all schemas in a database?
What happens if you add a new index to large table?
How do I partition a table in sql server?
What Is Rdbms?