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

Answer Posted / manoj

SELECT employee_id, employee_name, salary FROM employees
where rownum < 6 ORDER BY
salary DESC
group by department_id;

Is This Answer Correct ?    4 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

548


how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?

1529


What are the uses of synonyms?

606


What is oracle datasource?

553


What are the differences between number and binary_float in oracle?

571






How to create a new table in your schema?

607


What is blob datatype?

569


How many types of segments in Oracle?

529


How to commit the current transaction in oracle?

578


Explain the use of Merge statement in oracle 11g

596


How would you begin to troubleshoot an ORA-3113 error?

1605


How to delete a column in an existing table?

593


What is index-organized table in Oracle?

573


How can windows applications connect to oracle servers?

522


How can we delete duplicate rows in a table?

566