I have the following issue with my query. I have this table:
Table1:
ID Name Child
----------------------
130 a 150
130 a 225
130 a 565
130 a 343
130 a 2225
All I am trying is using group to output to query to display one record which is 130 but show all the children as a new column as a comma separated list inside that parent row.
How can I do this?
I am using front end to do this work but that is setting the data in all rows
I am looking for a result like this:
ID Name Children
-----------------------------------------
130 a 150,225,565,343,2225
I am using SQL Server