Hello,
I would like to know if there is a way to group by certain fields and also concatenate the contents of one field based on that group by. Here is a sample dataset:
RECORD #1--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment1
RECORD #2--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment2
RECORD #3--------------------
FIELD VALUE
ID 987
Name XYZ
Description Comment3
I would like to take these records group by the FIELD, ID, and NAME AND concatenate the Description field so that the data in the target table would be represented as:
RECORD #1--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment1 Comment2
RECORD #2--------------------
FIELD VALUE
ID 987
Name XYZ
Description Comment3
I'm not sure how to concatenate the Description field as I need to do a group by that doesn't include the Description field.
Any help would be greatly appreciated.
Thanks,
Sally
I would like to know if there is a way to group by certain fields and also concatenate the contents of one field based on that group by. Here is a sample dataset:
RECORD #1--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment1
RECORD #2--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment2
RECORD #3--------------------
FIELD VALUE
ID 987
Name XYZ
Description Comment3
I would like to take these records group by the FIELD, ID, and NAME AND concatenate the Description field so that the data in the target table would be represented as:
RECORD #1--------------------
FIELD VALUE
ID 123
Name ABC
Description Comment1 Comment2
RECORD #2--------------------
FIELD VALUE
ID 987
Name XYZ
Description Comment3
I'm not sure how to concatenate the Description field as I need to do a group by that doesn't include the Description field.
Any help would be greatly appreciated.
Thanks,
Sally