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
How to turn on or off recycle bin for the instance?
How to connect ms access to oracle servers?
When do we use group by clause in a sql query?
What is a directory object?
How to check database size in Oracle?
How to export data with a field delimiter?
What is Reduced List of Values?
How do we get field detail of a table?
How to create a table index?
Whats the benefit of dbms_stats over analyze?
How to create a stored program unit?
How to increment dates by 1 in oracle?
How to insert a new row into a table in oracle?
How can I see all tables in oracle?
What do database buffers contain?