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

select user_id,min(date) as first_buy_date,count(id) as cnt 
from order_info 
where date > '2025-10-15' 
and product_name in ('C++','Java','Python') 
and status = 'completed' 
group by user_id 
having count(id) >=2
order by user_id;

全部评论

相关推荐

评论
点赞
收藏
分享
牛客网
牛客企业服务