how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / praveen marigaddi.
select distinct sal from emp a where 5 >(select count
(distinct sal) from emp where sal>a.sal) order by a.sal desc
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Explain the use of compress option in exp command.
What are the uses of linked server and explain it in detail?
How can I convert single byte kana characters into multi byte kana characters and vice-versa.
How to Truncate Table in Oracle
How to create a new table in your schema?
What is oracle update statement with inner join ?
Explain the use of indexes option in exp command.
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
What is archive log in Oracle?
How to use "in" parameter properly?
what happened to the global index when I truncate the data in one of the partition?
What is an oracle database table?
How to drop an index in oracle?
How many categories of data types in oracle?
What is a oracle database?