I'm using Oracle SQL and i have a question regarding group by
command.
I have the following table:
Column_A (int)
Column_B (int)
Example for data in the table:
Column_A | Column_B
11 | 2
23 | 3
32 | 4
32 | 10
11 | 23
23 | 11
44 | 1
23 | 5
I want to Group by Column_A
while the values of Column_b
will be terminated by commas. Output table:
Column_A | Column_B
11 | 2, 23
23 | 3, 11
32 | 4, 10, 5
44 | 1
Any recommendation how to do that?