how to find nth highest salary
Answer Posted / ayush sharma
select sal from (select distinct sal from emp order by desc)
where rownum <=n minus select sal from(select distinct sal
from emp order by desc) where rownum<=n-1;
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
what information is maintained within the msdb database? : Sql server administration
How to connect php with different port numbers?
What is acid db?
What is cube dimension? : sql server analysis services, ssas
What happens if you are trying to access a schema not owned by you?
how to overcome kernel isssues
List out some of the requirements to set up a sql server failover cluster?
Explain what are commit and rollback in sql?
Which are new data types introduced in sql server 2008?
I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?
What is the use of group by clause?
What is the sql case statement used for?
Explain the properties of subqueries in sql server?
How to install sql server 2005 express edition?