select g1.user_id,first_buy_date,second_buy_date,cnt from (select user_id,count(*) as cnt from order_info where status='completed' and product_name in ('C++','Java','Python') and date > '2025-10-15' group by user_id having count(*) >1)g1 left join (select user_id,date as first_buy_date from (s...