题解 | 牛客的课程订单分析(六)
牛客的课程订单分析(六)
https://www.nowcoder.com/practice/c5736983c322483e9f269dd23bdf2f6f
select t1.id,t1.is_group_buy,t1.client_name from (select oi.id,is_group_buy,name client_name,count(*)over(partition by user_id) cnt from order_info oi left join client on oi.client_id = client.id where product_name in ("C++","Java","Python") and status = "completed") as t1 where cnt >= 2 order by t1.id
嘟嘟嘟,跟前面的差不多