题解 | #牛客的课程订单分析(二)#分组计数筛选

牛客的课程订单分析(二)

https://www.nowcoder.com/practice/4ca4137cb490420cad06d2147ae67456

select distinct user_id
from (
    select *,
        count(status) over(partition by user_id) cnt
    from order_info
    where date>'2025-10-15' and status='completed'
    and product_name in ('C++','Java','Python')
) t
where cnt>=2
order by user_id

全部评论

相关推荐

07-07 14:30
复旦大学 Java
遇到这种人我也不知道说啥了
无能的丈夫:但我觉得这个hr语气没什么问题啊(没有恶意
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务