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

In a distributed database system, can we execute two queries simultaneously?

1155


How to find 3rd highest salary of an employee from the employee table in sql?

1133


what are integrity rules?

1092


How to handle bulk data?

1368


How can check sql version from command line?

1138


Can you have more than one key in a database?

994


What is an implicit commit?

1103


i have some prob lem to tell me about my self in interview first round ...

2215


How do I count duplicates in sql?

1178


What is a ddl command?

1157


What does := mean in pl sql?

1091


Write a query to find the names of users that begin with "um" in sql?

1045


How many types of relationship are there?

1084


What is cursor and why it is required?

1256


Can we use joins in subquery?

1229