思路:和订单分析三类似,多了两个聚合函数的使用

完整代码:

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