I have a sample table with some records. I show the table structure and the expected output. Please help me to do this. Now i use Group_Concat but its showing 1,1 and 2,2 and 3,3 in ids field.
ID PRODUCT QUANTITY 1 COMPUTER 100 2 MOUSE 120 3 KEYBOARD 10 4 MOUSE 150 5 KEYBOARD 300 6 COMPUTER 20 7 KEYBOARD 1 Eexpected Output
ID PRODUCT QUANTITY IDS 1 COMPUTER 120 1,6 2 MOUSE 270 2,4 3 KEYBOARD 311 3,5,7