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

Select ename from table where sal IN
(select Max(sal) over (partition by Deptno) as mxs from table) 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

What is the difference between nvl function, ifnull function, and isnull function?

1086


Is trigger a stored procedure?

921


How many times can we commit in a loop?

998


Can there be 2 primary keys in a table?

986


What is the difference between inner join and left join?

969


Is sql a programming?

961


What is a clob in sql?

1001


What is a constraint? Tell me about its various levels.

1139


How many indexes can be created on a table in sql?

1035


How do you clear the screen in sql?

1050


How to change the order of columns in Oracle SQL Plus ?

1038


Can a table have no primary key?

1038


Where is all the data on the internet stored?

984


List the ways to get the count of records in a table?

893


What is trigger point?

976