题解 | 丝滑 享受 一气呵成

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

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

select user_id,date first_buy_date,c cnt
from(select *,row_number()over(partition by user_id order by date) rn
from(select *,count(user_id)over(partition by user_id) c
from order_info
where date>"2025-10-15" and status='completed' and product_name in ('C++','Python','Java')) t
where c>=2) t1
where rn=1

全部评论

相关推荐

01-16 21:34
武汉大学 Java
点赞 评论 收藏
分享
2025-12-13 14:51
已编辑
井冈山大学 算法工程师
龙虾x:算法比你强的没有你美,比你美的…..算了已经没有比你美的了
工作两年想退休了
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务