how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / karthik
select * from (select ename,eno,dept,sal,row_number() over
(partition by dept order by sal desc)top5 from emp) where
top5 <= 5
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to experiment a data lock in oracle?
What are the major difference between truncate and delete?
How to use regular expression in pattern match conditions in oracle?
21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.
How to write a left outer join with the where clause in oracle?
How to use "in out" parameter properly?
How do I spool in oracle?
How to declare a local variable?
How to export data to a csv file?
Explain what are the characteristics of data files?
What is an Oracle index?
What is a named program unit?
Explain about integrity constraint?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What are the advantages of oracle?