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
Does transparent data encryption provide encryption when transmitting data across the network?
How to enable/disable indexes?
Define views.
What is postgresql server?
What will be the maximum number of index per table?
How to create a view using data from another view?
What is sub-query in sql server?
What happens if ntwdblib.dll is missing on your machine?
What does COMMIT command do?
What are wait types?
How is sql server used?
where the connection string store in the database
Explain about link server in sql server?
What are the types of ssrs?
What is db stored procedure?