I would like to know is it possible from this table
ID Price ServiceID
1 50 11
1 -10 12
2 100 11
2 20 11
to group by ID, sum the price and concatenate serviceID, something like this:
ID Price ServiceID
1 40 11,12
2 120 11
It is rather simple to group by ID and sum the price, but concatenate service IDs what is troubling me.
Thank you for participating.
See Question&Answers more detail:os