For a report I'm working on I need to combine data from rows in a specific column based on the data they share in a separate column. All data is from the same table:
ID | Name |
10000 Jane Doe
10000 John Smith
50000 Jack Bauer
50000 Jon Snow
90000 Jack Bauer
I need to somehow combine the Name row together when they share a common ID value:
ID | Name |
10000 Jane Doe, John Smith
50000 Jack Bauer, Jon Snow
90000 Jack Bauer
The ID is not the primary key
for this table but it's what I need as the unique value on the report.
I'm mostly self taught and admittedly lacking a perfect SQL
vocabulary. I can't quite think of how to articulate the code in order to do this. Any help with the logic would be immensely appreciated!
Dave