Posted by Mintyman on 12/22/06 12:16
Hi,
I'm working on a system migration and I need to combine data from multiple
rows (with the same ID) into one comma separated string. This is how the
data is at the moment:
Company_ID Material
0x00C00000000053B86 Lead
0x00C00000000053B86 Sulphur
0x00C00000000053B86 Concrete
I need it in the following format:
Company_ID Material
0x00C00000000053B86 Lead, Sulphur, Concrete
There is no definite number of materials per Company.
I have read the part of
http://www.sommarskog.se/arrays-in-sql.html#iterative that talks about 'The
Iterative Method' but my knowledge of SQL is very limited and I don't know
how to use this code to get what I need.
Can anyone help me?
[Back to original message]
|