how will I find the first 5 highest salaried employees in
each dept in oracle.

Answer Posted / uttam

select sal from (SELECT distinct sal FROM emp order by sal
desc)
where rownum <6

Is This Answer Correct ?    13 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between formal parameters and actual parameters?

543


What is the sql query to concatenate column values from multiple rows in oracle?

561


I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?

1972


How to create a new view in oracle?

617


How to create a testing table in oracle?

545






How to run the anonymous block again?

595


Explain what are the different type of segments?

576


How do you bind variables in oracle?

544


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

590


Point the difference between translate and replace?

572


Explain enable novalidate constraint.

597


How to change program global area (pga) in oracle?

584


Can you drop an index associated with a unique or primary key constraint?

587


Explain coalesce function?

624


What is a connect identifier?

541