how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / shareef
select * from(select emp.*,
dense_rank() over(partition by deptno order by sal desc) r
from emp) where r<=5;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does facebook use oracle?
List the various oracle database objects?
What are the different types of trigger and explain its various uses and functions?
What is oracle rowcount?
How to empty your oracle recycle bin?
How to create a new user account in oracle?
How to rename an index?
Explain the use of rows option in imp command.
How to work with data objects interactively?
What is the data pump export utility?
How to do a full database export?
How will you differentiate between varchar & varchar2?
Explain integrity constraint?
What is the minimum client footprint required to connect c# to an oracle database?
What are ddl statements in oracle?