I need to merge some data I am importing from a text file. The data is imported into a table like thus;
JobNumber, ..lots of other fields..., MaterialCode
i.e.;
00001, ..lots of other fields... , E6671
00001, , E6640
00003, , E7722
00004, , E6671
00004, , E6640
00004, , E6640
The 'lots of other field' tie up with our database, and are the same where job number are duplicated. I need to end up with the following format, as each job is a single instance to our workshop, we don't need to manipulate or otherwise use the MaterialCOde, but we do need to record it for delivery note reports. Thus, I need to end up with;
JobNumber (no duplicates), ..lots of other fields..., MaterialsUsed ( a single text field of combined data)
So the above data would end up in a new table as;
00001, ..lots of other fields... , E6671+E6640
00003, '' , E7722
00004, '' , E6671+E6640+E6640
I've been scratching my head as to how to achieve this ~ any ideas?
JobNumber, ..lots of other fields..., MaterialCode
i.e.;
00001, ..lots of other fields... , E6671
00001, , E6640
00003, , E7722
00004, , E6671
00004, , E6640
00004, , E6640
The 'lots of other field' tie up with our database, and are the same where job number are duplicated. I need to end up with the following format, as each job is a single instance to our workshop, we don't need to manipulate or otherwise use the MaterialCOde, but we do need to record it for delivery note reports. Thus, I need to end up with;
JobNumber (no duplicates), ..lots of other fields..., MaterialsUsed ( a single text field of combined data)
So the above data would end up in a new table as;
00001, ..lots of other fields... , E6671+E6640
00003, '' , E7722
00004, '' , E6671+E6640+E6640
I've been scratching my head as to how to achieve this ~ any ideas?