how to find nth highest salary
Answer Posted / rahul tripathi
The Genral answer which can work on any SQL:-
select salary from emp e1 where (n-1)=(select count(*)
from emp where salary > e1.salary )
Rahul Tripathi
rahultripathi@inkanpur.com
Is This Answer Correct ? | 249 Yes | 76 No |
Post New Answer View All Answers
What is a covered index?
How can you list all the table constraints in a database?
List types of tables in SQL Azure?
Explain the use of containers in ssis and also their types?
What is the purpose of self join?
How to find related tables in sql server?
What do you understand by coalesce in sql server?
What is scrollable cursor?
What does Master database contains?
Define tool Manage Statistics in SQL Server 2000 query ?
Tell me what is the stuff and how does it differ from the replace function?
Define a cross join?
How to retrieve field values using mssql_result()?
Explain primary key, foreign key and unique key?
What is entity data services?