thefrstgatsby
Technical User
I want to create a query which takes the following table:
Table 1
Row 1 Row 2
----- -----
one bcf
two wer
three wer
four wer
five xyz
And produces:
tempTable 2
Row 1 Row 2
----- -----
one bcf
two, three, four wer
five xyz
using a cursor or some other way, but it must append Row 1 values that have the same Row 2 values, by using a "," to separate them.
How can I do this?
Table 1
Row 1 Row 2
----- -----
one bcf
two wer
three wer
four wer
five xyz
And produces:
tempTable 2
Row 1 Row 2
----- -----
one bcf
two, three, four wer
five xyz
using a cursor or some other way, but it must append Row 1 values that have the same Row 2 values, by using a "," to separate them.
How can I do this?