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

Select Ename From emp where sal in (Select Max(Sal) From
emp where deptno in (10,20) group by deptno);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

1001


Write a sql query to convert all character to uppercase after hypen.

1396


What is sap sql anywhere?

1012


How to run sql statements through the web interface?

1009


What are the most important characteristics of pl/sql?

1109


how many groups of data types? : Sql dba

992


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1005


How do you get column names only for a table (sql server)?

1119


What are crud methods?

992


What if we write return in procedure?

1374


What is dml and ddl?

918


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1073


Is trigger a stored procedure?

911


what is bcp? When is it used?

1071


What is composite primary key in sql?

963