My database record is as below:-
Can it be arrange into this form?
Assume that the max sum(qty)=3
Code:
cartid foodid qty 92 5 1 93 5 1 94 5 1 95 11 1 96 5 1 97 5 1
Assume that the max sum(qty)=3
Code:
foodid sum(qty) 5 3 11 1 5 2
Comment