题解 | #返回订单数量总和不小于100的所有订单的订单号#

返回订单数量总和不小于100的所有订单的订单号

https://www.nowcoder.com/practice/ff77e82b59544a15987324e19488aafd

select t.order_num from (select order_num,sum(quantity) as hz from OrderItems group by order_num having hz>=100 ) t order by t.order_num

简单

全部评论

相关推荐

专心打鱼:互联网搬运工,贴子都要偷
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务