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
How to delete a database in ms sql server?
Explain what are magic tables in sql server?
What is difference between standardization and normalization?
Is it possible to replicate data from sql server to oracle? : sql server replication
What is dbcc?
What is the Difference Between Primary and Foreign Key?
How do use Having,Group by,Group function in SQL?
Can you explain different types of joins?
What are the different types of sql server replication? : sql server replication
How to enter comments in transact-sql statements?
What is indexing a document?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
Explain the third normal form(3nf)?
Tell me the phases a transaction has to undergo?
Why we need to use secondry database file? though, we can do same work using primary database file also.