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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / lakshya

SELECT salary FROM employee where rownum < 6 ORDER BY
salary DESC
group by dept;

Is This Answer Correct ?    11 Yes 39 No

Post New Answer

More Oracle General Interview Questions

Can u make a synonym for deptno=10 only from emp table.

1 Answers   TCS,


How to turn on or off recycle bin for the session?

0 Answers  


What is enter substitution variable in oracle?

0 Answers  


How can we find out the duplicate values in an oracle table?

0 Answers  


How to empty your oracle recycle bin?

0 Answers  






Is it possible to insert comments into sql statements return in the data model editor ?

0 Answers   Oracle,


What are Schema Objects ?

2 Answers  


What is bulk copy or bcp in oracle?

0 Answers  


Explain the statement?? ALTER TABLE TABLE_NAME MOVE; What it the use of above statement??

1 Answers   BirlaSoft,


interview questions with answer for cts

0 Answers   Cognizant,


find the second highest salary of the emp table

6 Answers  


how to select second mauximum value in a given table under salary column

6 Answers   Sapient,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)