I HAVE A SOURCE FILE CONTAINING
1|A,1|B,1|C,1|D,2|A,2|B,3|A,3|B
AND IN TARGET I SHOULD GET LIKE
1|A+B+C+D
2|A+B
3|A+B
WHICH TRANSFORMATION I SHOULD USE
Answer Posted / nitin
Create two mapping pipelines
One pipeline is to
1) Break the record 1|A,1|B,1|C,1|D,2|A,2|B,3|A,3|B using normalizer transformation
1|A
1|B
1|C
1|D
2|A
2|B
3|A
3|B
Then pass the records into a flat file target.
Source-->SQ-->Normaliser--> Target (Output_file1)
Output_file1-->SQ--> Aggregator-->Target(Output_file2)
Create another mapping pipeline where the above records act as the source and the delimiter as '|'.
Use an aggregator transformation to group based on the first column and use the SUM(col2) GROUP BY col1.
write the output to the target file with | as delimiter
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
tell me about your project functionality
What are the different types of repositories created using 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
What are the types of caches in lookup?
whats the logic to load the lower level of granularity of data to fact table.
How big was your fact table
How many transformations can be used in mapplets.
Different sorts of metadata that stores in the storage facility?
How can we use batches?
What all join we can perform in LOOKUP transformation?
Why update strategy and union transformations are active? Explain with examples.
Can you generate sequence numbers without using the sequence generator transformation?
How we can create indexes after completing the load process?
What is a shortcut and copy in Informatica and how two are different with each other?
What are the different types of olap? Give an example?