Reputation: 155
In a Data Flow, I have a ADO NET Source which load a table like this:
PersonID, Email
1, "[email protected]"
1, "[email protected]"
2, "[email protected]"
2, "[email protected]"
I need to merge emails from each persons and get a result like this:
PersonID, EmailsArray
1, "[email protected],[email protected]"
2, "[email protected],[email protected]"
How to I do it? Using derived column? a script component? a foreach loop? (in Data Flow doesn't exist). Thanks in advance.
Upvotes: 1
Views: 501
Reputation: 1836
Use an asynchronous script component with something like the following logic:
Upvotes: 2