题解 | #纠错3#

纠错3

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

SELECT 
    order_num,
    COUNT(*) items
FROM
    OrderItems
GROUP BY
    order_num
HAVING
    items >= 3
ORDER BY
    items,
    order_num;

全部评论

相关推荐

评论
2
1
分享
牛客网
牛客企业服务