Informatica - Concatenate all rows of 1 column to

2019-08-21 14:42发布

I am looking to convert all values from 1 columns to one single value in Informatica.

     Col1
Row1 A
Row2 B
Row3 C
Row4 D

To

     Col 1        
Row1 A,B,C,D

I have the the input available from an expression. Thank you!

1条回答
我命由我不由天
2楼-- · 2019-08-21 14:54

It should be possible to do it using a variable port in Expression transformation.

E.g.

in_Col1
v_Row1 := iif(isnull(v_Row1), in_Col1, v_Row1||','||in_Col1)
o_Row1 := v_Row1

After the Expression transformation, use an Aggregator transformation to pass only the last row which will have the concatenated value.

I have not tested it. Let me know if this works.

查看更多
登录 后发表回答