Reputation: 3
I need a MySQL query that will Select records between a date range, multiply the 'Qty' column and the 'unit price' column for each result, and then add all of those results together. I'll need help with the correct syntax as well.
Something like this:
SELECT 'Qty','unit value'
FROM `Inventory` (Qty * unit value for each result) then (add all results together)
WHERE `Date Received` BETWEEN '2012-1-1' AND '2013-1-1'
Any help appreciated!
Upvotes: 0
Views: 39