how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / ravindra reddy
select *from(select b.* from emp b order by sal desc)where rownum<=5 order by sal desc
------------------------------------------------------------
select *from(select b.*,rank() over(order by sal desc) from emp b)where rownum<=5
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?
Is there any function in oracle similar like group_concat of mysql?
Why we use bulk collect in oracle?
How many types of synonyms in Oracle?
How to view existing locks on the database?
How to loop through a cursor variable?
What is a proxy object?
What are the types of trigger in oracle?
What is a database table in oracle?
What is backup in Oracle?
What is transport network substrate (tns) in oracle?
How to create tables for odbc connection testing?
What are the uses of a database trigger?
What is java oracle used for?