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
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 |
Answer / xyz
select empid, year, sum(sal) as Totalsalary
From employees
group by empid, year;
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / vikneswaran
use agg trans group by empid and year then use sum(sal)
Is This Answer Correct ? | 3 Yes | 1 No |
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 |
Filter condition at workflow level & filter condition at mapping level . Which will get preference or which will work.
How to load last 10 records of flat file in to the target?
How will you update the first four rows and insert next four rows in a mapping?
I have source like this 1:2;3. so i want to load the target as 123
Could you explain what is enterprise data warehouse?
What is data merging, data cleansing and sampling?
how eliminate the duplicates in flat file with out using sorter ,aggregater
What can we do to improve the performance of informatica aggregator transformation?
which transformation uses cache?
How to delete the (flat file) data in the target table after loaded.
explain one complex mapping with logic? sales project?
0 Answers Accenture, JPMorgan Chase,
In which circumstances that informatica server creates Reject files?