I would like to ask for your help in order to achieve the following I have a table that the id column may have the same id on multiple rows which corresponds to different values on another column like the example bellow
TABLE #1
+-----+---------+
| id1 | value1 |
+-----+---------+
| 1 | 1 |
+-----+---------+
| 1 | 2 |
+-----+---------+
| 1 | 3 |
+-----+---------+
| 2 | 4 |
+-----+---------+
| 2 | 5 |
+-----+---------+
| 2 | 6 |
+-----+---------+
Based on id column I need the values that corresponds to the same id to be inputted in the same cell separated by a comma like the following example
Those need to be updated on another table
TABLE #2
+-----+---------+
| id2 | value2 |
+-----+---------+
| 1 | 1,2,3 |
+-----+---------+
| 2 | 4,5,6 |
+-----+---------+
How can this be done?