请问方法二中,窗口函数如果使用count(user_id) over(partition by user_id)会有什么不同吗?我试验了下,无法通过测试,但是无法理解为什么... select tbl.id, tbl.user_id, tbl.product_name, tbl.status, tbl.client_id, tbl.date from ( select *, count(user_id) over(partition by user_id) as cnt from order_info where date >= '2025-10-10' and status = 'completed' and product_name in ('C++', 'Java', 'Python') ) tbl where tbl.cnt>=2 order by tbl.id
点赞

相关推荐

02-10 12:23
已编辑
新余学院 C++
采集想要offer:专业技能那里要一条一条的列出来吧,感觉你项目很厉害了,但是如果你不写技术栈面试官对你项目不太懂的话都没办法问你八股😂C++都是基架岗,都是一群9✌🏻在卷,我觉得你要是有时间学个go把MySQL和redis写上去找个开发岗吧
点赞 评论 收藏
分享

牛客热帖

更多
牛客网
牛客企业服务