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

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

https://www.nowcoder.com/practice/c5736983c322483e9f269dd23bdf2f6f

select t.id,is_group_buy,name client_name
from client c right join
(
select *,count(*)over(partition by user_id) cnt
from order_info
where date > 2025-10-15  
and product_name in ("C++","Python","Java")
and status="completed")t on t.client_id=c.id
where t.cnt>=2
order by t.id

# select *,count(*)over(partition by product_name) cnt
# from order_info
# where date > 2025-10-15  
# and product_name in ("C++","Python","Java")
# and status="completed"

全部评论

相关推荐

xxxxOxo:该催就催,想要你的不会因为催就挂,催了就挂的是因为本来就要挂你
点赞 评论 收藏
分享
04-30 15:51
已编辑
上海交通大学 机械工程师
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务