Hi all,
I have the feeling that this is a simple thing to do but i just can't figure it out, here's the thing:
my DB collects orders in a resturant.
I have 2 tables: tempSubtotal (itemNumber, Date, Quantity...) and Archive (ItemNumber, Date, Quantity...)
I want to move the records from tempSubtotal to Archive each time.
the thing is that i want to sum the "Quantity" in the archive for each "itemNumber" and "Date".
the result Archive should contain the entire resturants menu (all the itemNumbers that where ordered) and how many orders there where (sum of "Quantity") each day.
can anyone help ?
I have the feeling that this is a simple thing to do but i just can't figure it out, here's the thing:
my DB collects orders in a resturant.
I have 2 tables: tempSubtotal (itemNumber, Date, Quantity...) and Archive (ItemNumber, Date, Quantity...)
I want to move the records from tempSubtotal to Archive each time.
the thing is that i want to sum the "Quantity" in the archive for each "itemNumber" and "Date".
the result Archive should contain the entire resturants menu (all the itemNumbers that where ordered) and how many orders there where (sum of "Quantity") each day.
can anyone help ?