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
How to stop log file growing too big?
How do I edit a stored procedure in sql server?
What is difference between count (*) and count column?
How does stuff differ from the replace function?
How to display a past time in days, hours and minutes?
How to defragment table indexes?
what is a correlated sub-query? : Sql server database administration
How do you rename a table in sql server?
Is it safe to delete log files?
What is the difference between ‘having’ clause and a ‘where’ clause?
What is difference between primary key and foreign key?
How is sql server used?
What is difference between rownum and row_number?
Explain different backup plans?
What is bulkcopy in sql?