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

select ename from emp where sal in(select max(sal) from
emp) and 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

Write the command to remove all players named sachin from the players table.

1124


What is the purpose of a sql?

915


How do you modify a column in sql?

943


how many columns can be used for creating index? : Sql dba

899


Can a select statement fire a trigger?

1099


how to convert character strings to dates? : Sql dba

985


Cite the differences between execution of triggers and stored procedures?

1031


What is execute immediate?

1008


what is text? : Sql dba

1010


Why primary key is required?

939


Does asenumerable execute the query?

986


Which is better join or subquery?

1067


what is the difference between undefined value and null value? : Sql dba

1041


Does a user_objects view have an entry for a trigger?

963


Can you rollback after commit?

936