Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Merge two or more rows when using SSIS

$
0
0

I'm working in SSIS with a source table and creating derived columns.

Here is the example of the source table:

Account , account_type, payment, payment_date
12345       1            100     09/19/2016
12345       2            200     10/26/2016
12345       3            500     10/31/2016
78945       1            250     09/30/2016

Now I've created derived columns. If account_type = 1, then values go into a set of derived columns, if it = 2, then it would go to another set of derived columns as so forth.

These are how the derived columns look like now:

I need to merge the rows to be as follows:

I'd appreciate any guidance for an approach to get the intended result.

Thank you in advance,

Jeannette


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>