题解 | #纠错3#

纠错3

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

SELECT order_num, COUNT(*) AS items 
FROM OrderItems 
GROUP BY order_num -- 仅仅修改了分组的字段
HAVING COUNT(*) >= 3 
ORDER BY items, order_num;
全部评论

相关推荐

点赞 评论 收藏
分享
shtdbb_:还不错,没有让你做了笔试再挂你
点赞 评论 收藏
分享
2 收藏 评论
分享
牛客网
牛客企业服务