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 / dharmendra
SOURCE->SRT->EXP->AGT->TGT
SRT - Sort by column col1.
EXP - empid
name
v_name=iif(v_empid=empid,v_name||','||name,name)
v_empid=empid
o_empid=v_empid
o_name=v_name
After this we can use aggregator t/r to take last row for a
particualr emp id using LAST.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can you generate sequence numbers without using the sequence generator transformation?
In which transformation you cannot drag ports into it?
Which development components of informatica have the highest usage?
where to store informatica rejected data? How to extract the informatica rejected data?
What are data-driven sessions?
Enlist few areas or real-time situations where informatica is required.
What is a pre-defined event and user-defined event?
What is aggregator transformation in informatica?
Suppose on 1st Nov 2010 you had created a mapping which includes huge aggregator calculations and it is under process for next two days. You will notice that even on 3rd day also its still calculating. So without changing a logic or changing a mapping How will you troubleshot or to run that mapping? Explain the steps
Performance tuning( what you did in performance tuning)
Calculate sum of salaries department wise. Then the sum will be repeat for all columns in each department. Develop a mapping for this.
tell me 5 session failure in real time how can you solve that in your project?
explain about unit testing? in real time?
Do you find any difficulty while working with flat files as source and target?
How to implement security measures using repository manager?