最简单的一集
牛客的课程订单分析(七)
https://www.nowcoder.com/practice/d6f4a37f966145da8900ba9edcc4c068
select source, count(1) cnt
from (select ifnull(name, 'GroupBuy') source, count(product_name) over (partition by user_id) rk
from order_info o
left join client c on o.client_id = c.id
where date > '2025-10-15'
and product_name in ('Python', 'C++', 'Java')
and status = 'completed') a
where rk > 1
group by source
order by source;
查看10道真题和解析

曼迪匹艾公司福利 140人发布