The question may be confusing but here's the example.
TABLE 1
|ID|
1
1
2
2
3
TABLE 2
|ID| |NAME|
1 ROSE
1 LILLY
2 JASMINE
2 SUNFLOWER
3 LAVENDER
I want the output like this.
JOINED_TABLE
|ID| |NAME|
1 ROSE, LILLY
2 JASMINE, SUNFLOWER
3 LAVENDER
Can Anyone please suggest me the query in SQL?