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

select empno from emp where (sal,deptno) in ( select max
(sal),deptno from emp where deptno in (10,20) group by
deptno)

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we debug in PL/SQL?

1119


What is pl sql package?

1022


How to get list of all tables from a database?

1139


What is the best partition size for windows 10?

986


Explain commit, rollback and savepoint.

982


What are sql built in functions?

922


How to add a column ‘salary’ to a table employee_details?

994


Why are indexes and views important to an organization?

936


Show how functions and procedures are called in a pl/sql block.

1101


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1130


What do you think about pl/sql?

1002


Why do we create stored procedures & functions in pl/sql and how are they different?

927


What are the sql versions?

927


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

932


How can we implement rollback or commit statement in a trigger?

1017