题解 | 牛客的课程订单分析(三)

和上题结合一下

select id,user_id,product_name,status,client_id,date 
from order_info 
where  user_id in(
        SELECT user_id
        from order_info
        where date > '2025-10-15' 
        and product_name in ('C++','Java','Python') 
        and status = 'completed' 
        group by user_id
        HAVING count(*)>=2)  
and date > '2025-10-15' 
and product_name in ('C++','Java','Python') 
and status = 'completed' 
order by id;

全部评论

相关推荐

内向的柠檬精在研究求职打法:你们广东工业大学为啥这么多字节,好吓人,还有那个东北大学,重庆邮电,太哈人了
点赞 评论 收藏
分享
有担当的灰太狼又在摸鱼:零帧起手查看图片
点赞 评论 收藏
分享
求面试求offer啊啊啊啊:把华北改为华南再试一试,应该就没啥问题了。改完可能都不用投,别人主动联系了。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务