how to find nth highest salary
Answer Posted / kunal gupta
select top 1 sal from (select top n sal from tbl_master
group by sal order by sal desc)m order by sal
This answer is easiest and 100% tested
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the return type of executeupdate ()?
Explain candidate key, alternate key, and composite key?
Why do we use trigger?
What are trace files?
What does it mean to be in union?
How to view existing indexes on an given table using sys.indexes?
How to execute multiple stored procedures at one time in sql server?
What are the steps you will take to improve the performance of a poor performing query?
What are the advantages of policy management?
Tell me something about security and sql azure?
What do you know about system database? : SQL Server Architecture
What is the difference between local and global temporary tables?
What are database states in ms sql server?
What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.
Write a sql query to get zero records from a table having n number of records?