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

How to write a query with a right outer join in oracle?

1114


What is raw datatype?

1082


How do we represent comments in oracle?

1003


What are set operators?

1033


What is a procedure in oracle?

1076


Explain the use of record length option in exp command.

1027


Explain constraining triggers.

1045


What is rich query?

929


What is data block in Oracle?

1050


Can select statements be used on views in oracle?

985


How to create a new view in oracle?

1016


How to create a new user account in oracle?

955


How to list all indexes in your schema?

1034


How to write an inner join with the where clause in oracle?

997


Explain view?

980