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 data types in pl sql?

1198


What is nosql example?

1096


What is faster join or subquery?

1066


what is self-join? : Sql dba

1241


what is union? : Sql dba

1082


Explain what is a field in a database and record in a database?

1181


What does seeding a database mean?

1023


Why use triggers in sql?

1012


How do you update f as m and m as f from the below table testtable?

1930


what is a constraint? Tell me about its various levels. : Sql dba

1049


What are the different types of functions in sql?

1099


What is sql*loader and what is it used for? : aql loader

1250


How can you get sql*loader to commit only at the end of the load file? : aql loader

1060


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

1067


How to revise and re-run the last sql command?

1218