I have a flat file, in which i have two fields, emp_id,
emp_name. The data is like this,
emp_id,emp_name
101,soha
101,ali
101,khan
102,siva
102,shanker
102,reddy.
how to merge the names so that my output is like this
Emp_id Emp_name
101 Soha ali kahn
102 siva shenkar reddy
please provide solution
Answer Posted / nanda
In expression transformation take a variable port, lets say
v_emp_id and equate it to emp_id,
take one more variable port for calculation as v_cal
and write a expression in v_cal as
v_cal= iff(emp_id=v_emp_id, emp_name||v_cal, emp_name)-----
----- (1)
take an output port O_emp_name and
O_emp_name = v_cal
write the following as shown in the expression
transformation, i meant the order of ports and their
corresponding values
emp_id
emp_name
v_cal the (1) expression
v_emp_id emp_id
O_emp_name v_cal
send the output ports to aggregator and in aggregator
take a output port O_agg_emp_name
emp_id
emp_name
O_emp_name
O_agg_emp_name = last(O_emp_name)
send the emp_id and the O_agg_emp_name to the target
and thts it
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
can anyone suggest best free Talend data integration training online
How can you define user defied event?
What is exclusive and normal mode for repository services?
What are the advantages of using informatica as an etl tool over teradata?
Design a mapping to load the cumulative sum of salaries of employees into target table?
What are the performance considerations when working with aggregator transformation?
What are the components of workflow manager?
How union transformation is used?
Enlist some properties of sessions.
How identifying bottlenecks in various components of informatica and resolving them?
During the running session, output files are created by informatica server. Enlist few of them.
What is a joiner transformation and why it is an active one?
What is the Rank index port in Rank transformation?
What are the components of the workflow manager?
How to generate sequence numbers?