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

Which join is like an inner join?

1095


How does cross join work?

1009


Is natural join and inner join same?

993


How many aggregate functions are available there in sql?

1018


What are the benefits of triggers?

1221


How do you remove duplicates without using distinct in sql?

1019


Which sql statement is used to delete data from a database?

1009


What is database migration?

1012


What do you understand by case manipulation functions?

1082


What is sql catalog?

1068


what is the difference between a web-garden and a web-farm? : Sql dba

1145


What is data manipulation language?

1234


What is insert command in sql?

1193


What is sql partition function?

1292


What is difference between stored function and application function?

1290