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...

i want department wise maxmum salary and empolyee name

Answer Posted / satya

select empno,max(sal) sal,deptno from emp where empno in
(select e.empno from emp e where e.sal=(select max(a.sal) from
emp a where deptno=e.deptno)) group by deptno,empno;

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between post-database commit and post-form commit?

1286


What is a sub query and what are the different types of subqueries?

1174


What is oracle used for?

1071


Explain the use of rows option in imp command.

1140


What is background process in Oracle?

1140


What are the various oracle database objects?

1204


What is the fastest query method to fetch data from the table?

1418


How to rename an index?

1124


How to drop a stored procedure in oracle?

1106


What is partitioned table in Oracle?

1272


Can we store pictures in the database and if so, how it can be done?

1090


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

1166


In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col

4235


Is there a function to split a string in plsql?

1109


What is system global area (sga) in oracle?

1035