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 / srilekha

select ename from table where sal=(select max(sal) from
table) and depetno in (10,20)

Is This Answer Correct ?    27 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pl/sql packages?

1107


How do I find duplicates in the same column?

1104


How long does it take to learn pl sql?

1070


What is foreign key in sql with example?

943


Is primary key clustered or nonclustered?

1027


Does execute immediate commit?

1223


what are the properties and different types of sub-queries? : Sql dba

1039


What is 19 null in sql?

979


What are the types of join and explain each?

1058


What is the difference between instead of trigger and after trigger?

1018


How do I partition a table in sql?

1141


What is pl sql architecture?

968


what is single byte over head in oracle..?

2412


What is the difference between alter trigger and drop trigger statements?

1117


What is duration in sql profiler trace?

1088