Pages

Sunday, March 17, 2013

You have two columns in source table T1, in which the col2 may contain duplicate values.All the duplicate values in col2 of will be transformed as comma separated in the column col2 of target table T2.


Source Table: T1
Col1Col2
ax
by
cz
am
bn






Target Table: T2
col1col2
ax,m
by,n
cz
Solution:
  1. We have to use the following transformation as below.
    First connect a sorter transformation to source and make col1 as key and its order is ascending. After that connect it to an expression transformation.
  2. In Expression make four new port and give them name as in picture below.
  3. In concat_val write expression like as describe bellow and send it to an aggregator
  4. In aggregator group it by col1 and send it to target
  5. Finally run the session.

No comments:

Post a Comment