source : col1 101 101 101 102 102 102 103 103 103
col2 1000 1500 2000 1200 2300 3000 2400 1300 2000
i need target as
col1 101 102 103
col2 1000,1500,2000 1200,2300,3000 2400 1300 2000

Answer Posted / s

INPUT
col1 col2
101 1000
101 1500
101 2000
102 1200
102 2300
102 3000
103 2400
103 1300
103 2000

OUTPUT
col1 col2
101 1000,1500,2000
102 1200,2300,3000
103 2400,1300,2000


SOURCE->SRT->EXP->TGT

SRT - Sort by column col1.
EXP - col1
col2
v_col2=iif(v_col1=col1,v_col2||','||col2,col2)
v_col1=col1
o_col1=v_col1
o_col2=v_col2

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of data warehouses?

949


What are the differences between a connected lookup and unconnected lookup?

654


Hi all, Can you please send me the Dimensions and fact tables which are used in mutual fund project. and please send me the brief summary about the project. Please do the needful.

1859


explain abt ur project architecture?

1765


What does cheating measurement mean?

602






what is diff b/t sorter t/r and agg have the option sorter property...

1748


How are indexes created after completing the load process?

989


How to elaborate tracing level?

689


How might one distinguish in the case of mapping is right or not without associating session?

643


Design time, run time. If you don't create parameter what will happen

1428


How an expression transformation differs from aggregator transformation?

630


What is update strategy transform?

580


What are the mapping parameters and mapping variables?

626


can we override a native sql query within informatica? Where do we do it? How do we do it?

602


What is lookup change?

624