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
What would you do with an in-doubt distributed transaction?
what is the difference between substr and instr function in oracle?
How to establish administrator authentication to the server?
what is a Nested Loop join?
Can we use bind variables in oracle stored procedure?
What is sharded cluster?
How can we delete duplicate rows in a table?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
What is the quickest way to export a table to a flat file?
How view is different from a table?
while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511
What do you mean by a deadlock?
How to use subqueries in the from clause in oracle?
What are the different types of trigger and explain its various uses and functions?
What are the numeric comparison operations?