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 transaction server isolation?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
Can you explain various data region available in ssrs with their use?
What is difference between rollback immediate and with no_wait during alter database?
Is t sql the same as sql server?
What is resource db in sql server?
Can you explain what are commit and rollback in sql?
What are the types of joins in sql?
Why do we use trigger?
What is indexing a document?
What is a cube? : sql server analysis services, ssas
What are unicode character string data types in ms sql server?
1 01 101 01010
What is the difference between a view and a stored procedure?
How do you size a resultset?