how to find nth highest salary
Answer Posted / sharmila shree
SELECT TOP 1 salary FROM
( SELECT DISTINCT TOP 1 salary FROM table_name
ORDER BY salary DESC )
a ORDER BY salary
here 'a' is sub query of salary
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a trigger in sql server?
How do I find the sql server instance name?
What are the difference between clustered and a non-clustered index?
If no size is defined while creating the database, what size will the database have?
What is the definition for sql server 2000?
Explain indexes disadvantages?
What are page splits? : SQL Server Architecture
explain different types of cursors? : Sql server database administration
What is named calculation? : sql server analysis services, ssas
What is sql server replication? : sql server replication
What do you mean by data integrity?
What is default constraint?
Describe in brief sql server monitoring ways.
Do I need a report server to run reports in my application?
What are the diifferences between the ms sql server vs mysql?