hi all hi have flat file like below my requirement is
empid,ename,sal,loc
101,vamshi,5000,hyd
101,vamshi,5020,hyd
201,raju,5000,hyd
202,ram,4000,hyd
203,kumar,3500,pune
203,kumar,3500,pune
203,kumar,5000,hyd
203,kumar,6000,hyd
i want the o/p like this
in one target
201,raju,5000,hyd
202,ram,4000,hyd
and in second target
101,vamshi,5000,hyd
101,vamshi,5020,hyd
203,kumar,3500,pune
203,kumar,3500,pune
203,kumar,5000,hyd
203,kumar,6000,hyd
Answer Posted / kamleshmishra291
After SQ Take Aggr group by empid and create a variable port Rows_count=count(1)
Take a router after aggr and create two groups one for uniqe and one for duplicate
in uniqe condition = Rows_count=1
duplicate group condition= Rows_count>1
connect unique group to tgt1
connect duplicate group to java transformation---
add following codes
for (int i=0;i<count;i++)
{
o_empid=i_empid;
o_ename=i_ename;
o_loc=i_loc;
o_sal=i_sal;
generateRow();
}
connect java transformation to tgt2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are ETL Tools?
How can we handle two sessions in informatica?
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
How to extract sap data using informatica? What is abap? What are idocs?
Informatica Checkpoints
What is the need of etl tools?
According to his methodology what all you need before you build a datawarehouse
Write the unconnected lookup syntax and how to return more than one column.
What does “tail –f” command do and what is its use as an Informatica admin.
Explain the types of transformations?
What is the Process to creating lookup transformation in informatica
What is the cumulative sum and moving sum?
Target increases every day even though no new record was inserted
How can informatica be used for an organization?
What are the informatica performance improvement tips