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 / manjusure@yahoo.co.in

select * from emp e where 5> (select count(max(sal)) from emp
where e.deptno=deptno and sal>e.sal group by sal);

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1795


What is recycle bin in Oracle?

1087


What is PL/SQL ?

1907


What is an oracle cursor variable?

1008


Will you be able to store pictures in the database?explain.

930


What is key preserved table?

960


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

1025


How to execute a stored program unit?

1005


What are the restrictions on external table columns?

995


How to use in conditions in oracle?

998


Is oracle a relational database?

871


Is it possible to insert comments into sql statements return in the data model editor ?

2513


What is the difference between Delete, Truncate and Drop in Oracle?

1067


How to export data to a csv file?

1206


What is query image?

924