Reputation: 109
given the example table,
ID T A B X Y Z
1 S 1
2 S 2
1 E 4 a b c
3 S 5
2 E 8 d e f
and the assumptions:
I try to do the following:
The result would look like this
ID T A B X Y Z
1 S 1 4 a b c
2 S 2 8 d e f
3 S 5
...
Currently I use two nested for-loops, which is too slow. Has anybody a idea that is faster than two nested for-loops?
Upvotes: 0
Views: 815
Reputation: 12609
Combine rows and sum their values refer answer section of this question.
Upvotes: 1