Hi All
I have a huge data file (1000000 rows) that shows amongst other things: Customer Number, Name, Item and Value. Im wanting to reduce the data set by combining multiple rows that are for the same person and the same item. For example in the table below I would like to combine Joe Bloggs two book rows in to one etc.
I just cant think of how to do it for such a large data set, There might not be a way? Any help is much appreciated.
[TABLE="width: 360"]
<tbody>[TR]
[TD]CUSTOMER ID[/TD]
[TD]CUSTOMER NAME[/TD]
[TD]ITEM[/TD]
[TD]VALUE[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Chair[/TD]
[TD]£200.10[/TD]
[/TR]
[TR]
[TD]1345[/TD]
[TD]Andrew Smith[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1345[/TD]
[TD]Andrew Smith[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Chair[/TD]
[TD]£200.10[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Table[/TD]
[TD]£200.10[/TD]
[/TR]
</tbody>[/TABLE]
I have a huge data file (1000000 rows) that shows amongst other things: Customer Number, Name, Item and Value. Im wanting to reduce the data set by combining multiple rows that are for the same person and the same item. For example in the table below I would like to combine Joe Bloggs two book rows in to one etc.
I just cant think of how to do it for such a large data set, There might not be a way? Any help is much appreciated.
[TABLE="width: 360"]
<tbody>[TR]
[TD]CUSTOMER ID[/TD]
[TD]CUSTOMER NAME[/TD]
[TD]ITEM[/TD]
[TD]VALUE[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1298[/TD]
[TD]Joe Bloggs[/TD]
[TD]Chair[/TD]
[TD]£200.10[/TD]
[/TR]
[TR]
[TD]1345[/TD]
[TD]Andrew Smith[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1345[/TD]
[TD]Andrew Smith[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Book[/TD]
[TD]£105.80[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Chair[/TD]
[TD]£200.10[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]TV[/TD]
[TD]£2,345.00[/TD]
[/TR]
[TR]
[TD]1687[/TD]
[TD]Jane Doe[/TD]
[TD]Table[/TD]
[TD]£200.10[/TD]
[/TR]
</tbody>[/TABLE]