My Question:
VALUES: **TABLE A**
ID Number Code
ABC99 1 XYZ0
ABC99 1 XyZ1
ABC99 2 XZY2
ABC99 3 XYZ1
ABC99 3 XwZ4
DEF88 5 QPR1
DEF88 5 QPR2
DEF88 6 QPS1
Desired Out Put: ID should be distinct with Corresponding Number and Code Concatenated
OUTPUT:
ID Number Code
ABC99 1 XYZ0,XyZ1
ABC99 2 XZY2
ABC99 3 XYZ1,XwZ4
DEF88 5 QPR1,QPR2
DEF88 6 QPS1
The output: ID matches with a unique number and makes multiple rows (Code) to a single row separated with a comma (No matter how many they are).