题解 | #从 Products 表中检索所有的产品名称
从 Products 表中检索所有的产品名称以及对应的销售总数
https://www.nowcoder.com/practice/2b289b78de1546f38fd24e17e56f1bec
SELECT prod_name,quant_sold FROM Products AS p LEFT JOIN (select prod_id,sum(quantity) as quant_sold from OrderItems group by prod_id) as o on p.prod_id = o.prod_id