方法1,在上一题的基础上给子表加字段即可: with t_user as ( select o.user_id, count(1) ct from order_info o where o.date > '2025-10-15' and o.status = 'completed' and o.product_name in ('C++', 'Java', 'Python') group by o.user_id having count(1) >= 2 ) select a.user_id, min(a.date) first_buy_date, b.ct cnt from or...