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

Briefly define a session task?

1138


Design a mapping to get the pervious row salary for the current row. If there is no pervious row exists for the current row, then the pervious row salary should be displayed as null.

1295


Differences between connected and unconnected lookup?

1222


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

1786


In informatica workflow manager, how many repositories can be created?

1363


What happens when a session fails and you click on recover?

1120


What are the databases that informatica can connect to windows?

1055


what is the size of u r source(like file or table)?

2272


Different circumstance which drives informatica server to expel records?

985


What is the difference between Active and Passive transformation?

1153


What are the restrictions of union transformation?

1044


what is the -ve test case in your project.

2408


in u flatfile some of fact records are missed then u load the diminision records are not if u load diminsion records what about fact table records

2237


Differentiate between Load Manager and DTM?

2160


What is the procedure for creating independent data marts from informatica 7.1?

1067