文章目录
-
- 原题题目
- 代码实现(首刷自解)
原题题目
代码实现(首刷自解)
# Write your MySQL query statement below
SELECT product_id,(SUM(quantity)) total_quantity
FROM sales
GROUP BY product_id
# Write your MySQL query statement below
SELECT product_id,(SUM(quantity)) total_quantity
FROM sales
GROUP BY product_id