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
What is the difference between post-database commit and post-form commit?
what are the advantages of running a database in archive log mode?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
Is rowid unique in oracle?
What is meant by a deadlock situation?
How to create a new view in oracle?
How to check database size in Oracle?
How to store only time; not date and time?
How to fetch the row which has the max value for a column?
What is the max number of columns in an oracle table?
Explain an exception and its types?
What is MTTR advisor in Oracle?
What is a procedure in oracle?
How to get execution path reports on query statements?
How to define an oracle cursor variable?