Is there any way to get MySQL to run a series of Select statements that will yield quantity totals for one attribute based on multiple tuples...?
::example::
Table, Date, Store, Item Qty
Jan 2, 5, B, -4
Jan 3, 5, C, -3
Jan 3, 1, B, -1
Jan 5, 5, B, -3
I have a statement that will gives the total of item B from one store, but can't figure out a query that will give the total for item B sold by store 5 AND the total items sold by store 1....
Store 5, Item B, Qty -7
Store 1, Item B, Qty -1
2007-03-18
15:03:11
·
3 answers
·
asked by
?
2
in
Computers & Internet
➔ Programming & Design