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

What is a snapshot in oracle database?

1022


How do I call oracle stored procedures that take no parameters?

1106


Explain drop constraint oracle?

1057


Give the various rollback segment states.

1050


How to check database size in Oracle?

1189


How to start a new transaction in oracle?

1083


How to use existing values in update statements using oracle?

1065


How to convert raw data type into text in oracle? Explain

991


How to save query output to a local file?

1023


What is recovery manager(rman) backup in Oracle?

1183


How to work with data objects interactively?

976


What happens if you use a wrong connect identifier?

1057


How to create a stored procedure in oracle?

1102


What are the differences between number and binary_float in oracle?

1098


What is oracle rownum?

947