题解 | #牛客的课程订单分析(七)#

牛客的课程订单分析(七)

http://www.nowcoder.com/practice/d6f4a37f966145da8900ba9edcc4c068

```select 
case when a.is_group_buy = 'No'then c.name 
else 'GroupBuy' end as source
,COUNT(product_name) as scnt
from (
    select *
    ,count(*) over(partition by user_id) as cnt
from order_info
where date > '2025-10-15'
and status = 'completed'
and product_name in ('C++','Python ','Java')
)a
left join client c on a.client_id = c.id 
where a.cnt >=2
group by 1
order by 1
全部评论

相关推荐

11-08 10:39
门头沟学院 C++
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务