Hello everybody,
I have a quite large data sets (70.000) and would like your help.
Data sets looks as follows:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]COL1
(orderid)[/TD]
[TD="width: 64"]COL2 (prod.id)[/TD]
[/TR]
[TR]
[TD="class: xl65"]group1[/TD]
[TD="class: xl65, align: right"]230[/TD]
[/TR]
[TR]
[TD="class: xl65"]group1[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]1231[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]2141[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]5151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]51591[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]212312[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]230[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]25151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]24515[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]5122591[/TD]
[/TR]
[TR]
[TD="class: xl65"]group4[/TD]
[TD="class: xl65, align: right"]2255[/TD]
[/TR]
[TR]
[TD="class: xl65"]group4[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]25151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]55[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]1241[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]51521[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]25252[/TD]
[/TR]
</tbody>[/TABLE]
....... .........
What I want to do is regroup these groups based on relation.
For example 230 exists in Group 1 & Group 3
So we have one group there which consists of all which means
230,501,230,25151,24515,5122591.
But then 501 also coexists in group 4 so our group gets bigger we need to add also 2255 to our set
230,501,230,25151,24515,5122591,2255
But then 2255 also exists in group *** so we need to add *** since it coexists with 2255
So basically I need to make a group breakdown of all products that exist in same orderids.
In other words I need to group data by relation.
In a more "logical" language imagine this as "related products" group breakdown (where the criteria is that they coexist in any give orderid).
I hope this is clear.
Thank you in advance
I have a quite large data sets (70.000) and would like your help.
Data sets looks as follows:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]COL1
(orderid)[/TD]
[TD="width: 64"]COL2 (prod.id)[/TD]
[/TR]
[TR]
[TD="class: xl65"]group1[/TD]
[TD="class: xl65, align: right"]230[/TD]
[/TR]
[TR]
[TD="class: xl65"]group1[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]1231[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]2141[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]5151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]51591[/TD]
[/TR]
[TR]
[TD="class: xl65"]group2[/TD]
[TD="class: xl65, align: right"]212312[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]230[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]25151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]24515[/TD]
[/TR]
[TR]
[TD="class: xl65"]group3[/TD]
[TD="class: xl65, align: right"]5122591[/TD]
[/TR]
[TR]
[TD="class: xl65"]group4[/TD]
[TD="class: xl65, align: right"]2255[/TD]
[/TR]
[TR]
[TD="class: xl65"]group4[/TD]
[TD="class: xl65, align: right"]501[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]25151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]55[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]1241[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]151[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]51521[/TD]
[/TR]
[TR]
[TD="class: xl65"]group5[/TD]
[TD="class: xl65, align: right"]25252[/TD]
[/TR]
</tbody>[/TABLE]
....... .........
What I want to do is regroup these groups based on relation.
For example 230 exists in Group 1 & Group 3
So we have one group there which consists of all which means
230,501,230,25151,24515,5122591.
But then 501 also coexists in group 4 so our group gets bigger we need to add also 2255 to our set
230,501,230,25151,24515,5122591,2255
But then 2255 also exists in group *** so we need to add *** since it coexists with 2255
So basically I need to make a group breakdown of all products that exist in same orderids.
In other words I need to group data by relation.
In a more "logical" language imagine this as "related products" group breakdown (where the criteria is that they coexist in any give orderid).
I hope this is clear.
Thank you in advance