题解 | #纠错3#

纠错3

https://www.nowcoder.com/practice/3870c9bca7a4406f899af3e903b8bf51

SELECT order_num, COUNT(order_num) AS items 
FROM OrderItems 
GROUP BY order_num  --只修改了该处
HAVING COUNT(order_num) >= 3 
ORDER BY items, order_num;

可以看出是计算order num 出现的次数,所以是按照order_num分组

全部评论

相关推荐

one_t:硕还是本?什么岗
点赞 评论 收藏
分享
专心打鱼:互联网搬运工,贴子都要偷
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务