how will I find the first 5 highest salaried employees in
each dept in oracle.

Answer Posted / karthik

select * from (select ename,eno,dept,sal,row_number() over
(partition by dept order by sal desc)top5 from emp) where
top5 <= 5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is redo log?

621


How to find out what oracle odbc drivers are installed?

572


State and explain the different types of data models?

536


Explain the truncate in oracle?

547


what are bitmap indexes? How does they work?

1716






What happens if you lost a data file?

580


Which dictionary tables and/or views would you look at to diagnose a locking issue?

1487


What are the most common interview questions on ETL Testing for experience?

592


Explain the difference between replace() and translate() functions in oracle?

580


How to delete all rows a table in oracle?

621


What are the system predefined user roles?

585


How to best split csv strings in oracle 9i?

586


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

541


What is memory advisor in Oracle?

634


What is tns name?

543