题解 | #从 Products 表中检索所有的产品名称以及对应的销售总数#

从 Products 表中检索所有的产品名称以及对应的销售总数

http://www.nowcoder.com/practice/2b289b78de1546f38fd24e17e56f1bec

 select SUM(quantity) from OrderItems
where Products.prod_id = OrderItems.prod_id
) as quant_sold
from  Products ;
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务