题解 | #牛客的课程订单分析(四)#
牛客的课程订单分析(四)
https://www.nowcoder.com/practice/c93d2079282f4943a3771ca6fd081c23
select user_id,min(date) first_buy_date,count(user_id) cnt from order_info where date > '2025-10-15' and product_name in ('C++','Java','Python') and status = 'completed' group by user_id having count(user_id) > 1 order by user_id
日期在2025-10-15知乎,选课为('C++','Java','Python'),购买成功.一个用户下单2个以及2个以上
where date > '2025-10-15' and product_name in ('C++','Java','Python') and status = 'completed' group by user_id having count(user_id) > 1