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 object data modeling?
What is an oracle user account?
How to insert a new row into a table in oracle?
How do I spool to a csv formatted file using sqlplus?
What is the relationship among database, tablespace and data file?
Why oracle is used?
What is a sub query? Describe its types?
Where do you use decode and case statements?
What happens if you use a wrong connect identifier?
What is java oracle used for?
How to assign values to data fields in record variables?
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
What to do if dba lost the system password?
How to login to the server without an instance?
How to loop through data rows in the implicit cursor?