how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / nagaraju nampally
select * from (select ename,sal,deptno,dense_rank()
over(partition by deptno order by sal)rnk from emp)x where
x.rnk<5
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to assign a tablespace to a users in oracle?
How a tablespace is related to data files?
What is recovery manager in Oracle?
How do I connect to oracle database?
What is a select query statement in oracle?
What is a server parameter file in oracle?
How to assign values to data fields in record variables?
Can a formula column be obtained through a select statement ?
Is there a combination of "like" and "in" in sql?
How to drop a stored function?
A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.
How do you find current date and time in oracle?
What are the differences between char and nchar in oracle?
How do we represent comments in oracle?
How oracle handles dead locks?