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 / praveen reddy.eddula

select ename from emp where sal in(select max(sal) from emp
where deptno in(10,20))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of triggers?

1085


What is a trigger in sql?

1169


Why do you partition data?

986


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

1017


What is dynamic sql in pl sql?

1001


Is it possible to include an insert statement on the same table to which the trigger is assigned?

979


How to select unique records from a table?

1018


What is a natural join?

1015


How do you concatenate in sql?

996


What is sqlerrm?

894


How do I clear the screen in sql plus?

1004


define data blocks ? : Sql dba

946


Is postgresql a nosql database?

1109


Sql technical questions

1226


What are the various levels of constraints?

1083