If the source has duplicate records as id and name columns,
values: 1 a, 1 b, 1 c, 2 a, 2 b,the target shd be loaded as
1 a+b+c or 1 a||b||c, what transformations shd be used for
this?

Answer Posted / rajesh.a

We need to use sorter,Expression and aggregator transformations to do this

1.Sort by ID
2.Take 2 variable ports one for id and one for name and store the values of id and keep on comparing with current id i.e variable is having previous id.
so,if previous id=current id then (variable name)||name otherwise only name.assign the variable name to output port
3.Use aggregator and use last or max(len(name)) to get the result

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is joiner change?

903


One of the optimizing technique to improve the session performance is push down optimization,by using push down optimization we push as much as transformation logic to source/target database,but this degrades the d/b performance,how to overcome this?

1997


To import the flat file definition into the designer where should the flat file be placed?

837


What is the session task and command task?

779


What is the difference between STOP and ABORT options in Workflow Monitor?

943


can u give example for factless fact table

5958


How to generate sequence numbers?

812


Describe an informatica powercenter?

800


What are the different clients of powercenter?

808


How to join three sources using joiner? Explain though mapping flow.

886


wat are deployement groups in informatica, how it will be used for developers

1450


What is the difference between SOURCE and TARGET BASED COMMITS? What are the deliverables?in your project?

1853


Design a mapping to get the pervious row salary for the current row. If there is no pervious row exists for the current row, then the pervious row salary should be displayed as null.

1005


What is exclusive and normal mode for repository services?

889


How do you take back up of repository?

914