how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / mihir nasikkar
select *
from employee X
where salary in (select top 5 salary
from employee
where dept = X.dept
order by salary desc)
order by dept, salary desc
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
IS it possible to built the oracle database without setting the kernal parameters?
What is the difference between post-database commit and post-form commit?
master table and child table performances and comparisons in Oracle ?
What is oracle update statement with inner join ?
What is a cursor and what are the steps need to be taken?
definition of cluster and non-clustered index?
Explain oracle 12c new features for developers?
What is the relation of a user account and a schema in oracle?
Whether any commands are used for months calculation? If so, what are they?
How will you identify oracle database software release?
What is a read only transaction in oracle?
How to rename a column in an existing table?
What is columnar storage what is the advantage?
How to drop a tablespace?
Difference between the “verify” and “feedback” command?