Hello everybody,
I have a quite large data sets (70.000) and would like your help.
Data sets looks as follows:
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>....... .........
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:
COL1 (orderid) | COL2 (prod.id) |
group1 | 230 |
group1 | 501 |
group2 | 1231 |
group2 | 501 |
group2 | 2141 |
group2 | 5151 |
group2 | 51591 |
group2 | 212312 |
group3 | 230 |
group3 | 25151 |
group3 | 24515 |
group3 | 5122591 |
group4 | 2255 |
group4 | 501 |
group5 | 25151 |
group5 | 55 |
group5 | 1241 |
group5 | 151 |
group5 | 51521 |
group5 | 25252 |
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>
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