How to retrieve 5th highest sal from emp table?

Answer Posted / arvind patil

select rownum,name,salary
from (select name,salary
from employee
order by salary desc )
where rownum=5;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use fetch statement in a loop?

553


What privilege is needed for a user to create views in oracle?

587


How will you identify oracle database software release?

526


What is the database name in oracle?

534


What is Library Cache in Oracle?

641






Explain what are the different type of segments?

576


What is concurrency in oracle?

543


How to assign query results to variables?

590


How to manage transaction isolation level?

561


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

622


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1731


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

541


What is flashback in Oracle?

581


How to change system global area (sga) in oracle?

572


How to omit columns with default values in insert statement in oracle?

579