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
Name the different lookup cache(s)?
Different sorts of metadata that stores in the storage facility?
What is the way to execute pl/sql script using informatica mapping?
What are the designer tools for creating transformations?
what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?
What are the reusable transformations?
Reusable transformation and shortcut differences
What are the new features of informatica 9.x in developer level?
Target increases every day even though no new record was inserted
Explain lookup transformation source types in informatica
What is the need of an ETL tool?
My source is delimited flat file Flat file data is H|Date D1|ravi|bangalore D2|raju|pune T|4 The data will be send to target if the fallowing two conditions satisfied 1.The first row Date column is equal to SYSDATE 2.Last record second port equal to number of records. How to achieve?
How can we use mapping variables in informatica? Where do we use them?
can anyone explain me about retail domain project in informatica?
Explain joiner transformation in informatica