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...

There is a table with emp salary column how to get the fields belongs to the salary greater than the average salary of particular department.
Write a query

Answer Posted / murali krishna udayagiri

SELECT E.* FROM EMP E ,(SELECT DEPTNO,AVG(SAL) AVGSAL FROM
EMP GROUP BY DEPTNO) E1
WHERE E.SAL>E1.AVGSAL
AND E.DENPTNO=E1.DEPTNO;

Thanks,
Murali Udayagiri

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between a data warehouse and a data mart?

1107


As union transformation gives UNION ALL output, how you will get the UNION output?

1157


What are the performance considerations when working with aggregator transformation?

1201


What is intricate mapping?

1308


How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.

1841


How to elaborate tracing level?

1217


Which are the different editions of informatica powercenter that are available?

1079


To import the flat file definition into the designer where should the flat file be placed?

1099


Define Pmrep command?

1109


Explain the types of transformations?

1097


What does reusable transformation mean?

1192


What will be the approach?

1036


What is joiner transformation?

1063


server hot-ws270 is connect to Repository B. What does it mean?

2646


How to go to the older version for a mapping?

1152