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

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

http://www.nowcoder.com/practice/4ae8cff2505f4d7cb68fb0ec7cf80c57

在上个题目的答案下在套娃就行


select o.id, o.user_id, o.product_name, o.status, o.client_id, o.date
from order_info o
join
(select a.user_id as u***r /> from (select user_id  from order_info
      where status='completed' and product_name in ('C++','Java','Python')
      and date>'2025-10-15'
      group by user_id
      having count(distinct(product_name))>=2
     ) a) b
on o.user_id=b.u***r /> where product_name in ('C++','Java','Python') and status='completed' and o.date>'2025-10-15'
order by o.id;
全部评论

相关推荐

牛客76783384...:字节:不要放箭,活捉赵子龙
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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