7 lines
202 B
MySQL
7 lines
202 B
MySQL
|
-- Determine the total number of purchases for each product. List the number of the product, as well as the total number of purchases.
|
||
|
|
||
|
SELECT product, sum(qty) as cnt
|
||
|
FROM Purchases
|
||
|
GROUP BY product
|
||
|
;
|