I have table which represents sequence of points, I need to get sum by all possible combinations. The main problem is how to do it with minimum actions because the Real table is huge
Col1 | col2 | col3 | col4 | col5 | col6 | ct |
---|---|---|---|---|---|---|
Id1 | id2 | id3 | id4 | id5 | id6 | 30 |
Id8 | id3 | id5 | id2 | id4 | id6 | 45 |
The expected result is|p1 |p2 |ct||---|---|--||Id3|id5|75||Id3|id4|75||Id3|id6|75||Id5|id6|75||Id2|id4|75||Id2|id6|75||Id4|id6|75|
I would be grateful for any help