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?

Answers were Sorted based on User's Feedback



If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b,the ta..

Answer / 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

If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b,the ta..

Answer / saritha

you can use normalizer or expersion transformation.

Is This Answer Correct ?    2 Yes 5 No

If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b,the ta..

Answer / somnath pain

In source qualifier use this query
select name from table_name group by id
now apply an aggregator transformation to concate the name
according to the group id.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More Informatica Interview Questions

write a sql query following table some duplicate present 1 1 2 2 3 3 4 5 i want the output unique one column duplicate another column following format like unique duplicate 1 1 2 2 3 3 4 5

2 Answers   TCS,


hw to load this give the mapping? cty state o/p c1 s1 c1 c1 s2 s1 c1 s1 c1 c2 s3 s2 c3 s4 c1 c3 s2 s1 c2 s3 c3 s4 c3 s2 2 columns should be loaded to one column in target table?

1 Answers   Wipro,


What is a node in Informatica?

0 Answers  


How will you update the first four rows and insert next four rows in a mapping?

5 Answers   CTS,


After dragging the ports of 3 sources sqlserver,oracle,informix to single source qualiofier can we map these ports directly to target and how?

2 Answers  


write a query row to column follwing source? quarter sales q1 5000 q1 9000 q1 7000 q1 6000 q2 5000 q2 4000 q2 3000 q2 1000 q3 4000 q3 3000 q3 1000 q3 2000 q4 5000 q4 400 i want the output? q1 q2 q3 q4 sales

3 Answers   Cognizant, Flextronics,


Different sorts of metadata that stores in the storage facility?

0 Answers  


how can we load first and last record from a flat file source to target?

7 Answers   Infosys, ITC Infotech,


After draging the ports of three sources(sql server,oracle,informix) to a single source qualifier, can you map these three ports directly to target?

6 Answers  


What are the settings that you use to configure the joiner transformation?

0 Answers   Informatica,


where to store informatica rejected data? How to extract the informatica rejected data?

0 Answers  


can v update d records in target using update stargey without generationg primary key ? explain

4 Answers   CTS,


Categories