I have two tables
Table 1
ID     NAME
1      Person1
2      Person2
3      Person3
Table 2
ID     GROUP_ID
1      1
2      2,3
The IDs in all the columns above refer to the same ID (Example - a Department)
My Expected output (by joining both the tables)
GROUP_ID     NAME
1            Person1
2,3          Person2,Person3
Is there a query with which i can achieve this. Your help is highly appreciated. Thank you.
 
     
    