SELECT user_id, min(date) as first_buy_date, COUNT(*) as cnt FROM order_info as info where date > '2025-10-15' and status = 'completed' and product_name in ('C++', 'Java', 'Python') GROUP by user_id HAVING COUNT(*) >= 2 order by user_id;
SELECT user_id, min(date) as first_buy_date, COUNT(*) as cnt FROM order_info as info where date > '2025-10-15' and status = 'completed' and product_name in ('C++', 'Java', 'Python') GROUP by user_id HAVING COUNT(*) >= 2 order by user_id;