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

consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.

Answer Posted / john

select dept_id,ename max(sal) from employee where dept_id
in ('1','2') group by dept_id;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql dialect?

1039


what are all the common sql function? : Sql dba

1013


Why is pl sql needed?

877


explain advantages of innodb over myisam. : Sql dba

1085


What are the different schemas objects that can be created using pl/sql?

969


what is error ora-03113: end-of-file on communication channel?

1084


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

947


Can we call dml statement in function?

980


What is the use of function in sql?

1029


Define sql delete statement.

955


what is commit? : Sql dba

1029


how tsql statements can be written and submitted to the database engine? : Transact sql

924


Why is there a need for sqlcode and sqlerrm variables?

999


Why we use cross join?

891


How does a trigger work?

990