i have a table like
empid ename year month sal
1 x 98 jan 500
1 x 98 feb 500
1 x 98 mar 500
1 x 99 jan 600
1 x 99 feb 600
2 y 98 jan 600
2 y 98 feb 600
2 y 98 mar 600
2 y 99 jan 700
2 y 99 jan 700
and so on
i want to find out totsal for every emp on year wise
plz help me

Answers were Sorted based on User's Feedback



i have a table like empid ename year month sal 1 x ..

Answer / sachin

use an aggregrator where you need to check the group by
port as emp id, ename and year.

Is This Answer Correct ?    9 Yes 2 No

i have a table like empid ename year month sal 1 x ..

Answer / xyz

select empid, year, sum(sal) as Totalsalary
From employees
group by empid, year;

Is This Answer Correct ?    6 Yes 0 No

i have a table like empid ename year month sal 1 x ..

Answer / vikneswaran

use agg trans group by empid and year then use sum(sal)

Is This Answer Correct ?    3 Yes 1 No

i have a table like empid ename year month sal 1 x ..

Answer / ankit kansal

Using SQL->

select empid,ename,year,sum(sal) Total_Sal from table_name
group by empid,ename,year;

Using Informatica->

SRC->SQ->Agg(sum(sal)[group by empid,ename,year])->TGT

http://deepinopensource.blogspot.in/

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

Filter condition at workflow level & filter condition at mapping level . Which will get preference or which will work.

2 Answers  


How to load last 10 records of flat file in to the target?

5 Answers   iNautix,


How will you update the first four rows and insert next four rows in a mapping?

5 Answers   CTS,


I have source like this 1:2;3. so i want to load the target as 123

4 Answers   HP,


Could you explain what is enterprise data warehouse?

0 Answers  






What is data merging, data cleansing and sampling?

6 Answers   Satyam,


how eliminate the duplicates in flat file with out using sorter ,aggregater

4 Answers   Wipro,


What can we do to improve the performance of informatica aggregator transformation?

0 Answers  


which transformation uses cache?

3 Answers   Keane India Ltd,


How to delete the (flat file) data in the target table after loaded.

2 Answers   TCS,


explain one complex mapping with logic? sales project?

0 Answers   Accenture, JPMorgan Chase,


In which circumstances that informatica server creates Reject files?

2 Answers  


Categories