I have created a table emp having two attributes id and item. Id has duplicate values containing records for item.
Initial table :
id item
1 A
1 B
1 C
2 D
2 E
2 F
I want to get a output as follows by writing a query in SQL . Database used is oracle.
id item
1 A,B,C
2 D,E,F