select user_id,min(date) first_buy_date,count(user_id) cnt from order_info where date>'2025-10-15' and status='completed' and product_name in ('C++','Java','Python') and user_id in (select user_id from order_info group by user_id having count(user_id)>=2) group by user_id order by user_id 我认为这样也可以,且比较简单,不知道有没有大佬可以看看
点赞

相关推荐

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