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

Best way to sum columns coming from a csv

$
0
0

I have a simple data flow. CSV to SQL. To keep the question simple lets say that my CSV has 5 columns and the values are 1, 2, 3, 4, 5 and that the SQL table has 6 columns called one, two, three, four, five and total.
When I run the task the row in SQL would be 1, 2, 3, 4, 5, NULL
I would like that to be 1, 2, 3, 4, 5, 15 (with 15 being the sum() of the other 5 CSV values)

I have looked at the aggregate task but cannot find a way to produce an additional extra value as the aggregates seem to want to work on a column by column basis



Viewing all articles
Browse latest Browse all 24688

Trending Articles