Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

List out the difference between commit, rollback, and savepoint?

1005


What is the relation of a user account and a schema in oracle?

1037


Which is better Oracle or MS SQL? Why?

6311


What is set verify off in oracle?

1057


Explain the use of control file?

1079


Why do we need oracle client?

910


if you ctreate table identity

2339


What are the limitations of check constraint?

987


What is BBED in Oracle?

1115


Can you create a synonym without having a table?

1002


How do I connect to oracle database?

1055


What is connection pool in oracle?

947


What is a subquery in oracle?

1068


How to execute the package in oracle?

1058


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

2075