Informatica - Concatenate all rows of 1 column to a single value

青春壹個敷衍的年華 提交于 2019-12-24 22:00:53

问题


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:


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.



来源:https://stackoverflow.com/questions/51274195/informatica-concatenate-all-rows-of-1-column-to-a-single-value

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!