SELECT new.id, new.is_group_buy, IF(new.is_group_buy = 'Yes', NULL, c.name) FROM( select *, count(*)over(partition by user_id ) as count -- 基于题目订单分析三,使用窗口函数更简洁 FROM order_info WHERE date >= '2025-10-15' AND status ='completed' AND product_name in('C++','P...