create one string from various records
Hi all,
I have a question related to strings. We have shipments with remarks but these remarks are covered over 10 lines. I dont want to have a dataset with the same shipmentnumber 10 times with the remarks text in 10 records but one line with the shipment number and one field with the complete text.
I have 3 columns called:
[number] [Sequence] [text]
0 0 abc
0 1 def
1 0 ghi
1 1 jkl
1 2 mno
I would like to see another column [textline] with the text joined together but according to this example (taking the group into account).then I will use a Max on sequence to get only one record with the complete tekst. or an alternative which I havent considered what could work maybe better as mine idea.
[number] [Sequence] [tekst] [textline]
0 0 abc abc
0 1 def abcdef
1 0 ghi ghi
1 1 jkl ghijkl
1 2 mno ghijklmno
result wil be:
[number] [textline]
0 abcdef
1 ghijklmno
best regards,
Paul.
|