select (case when t1.name is null then 'GroupBuy' else t1.name end) source,count(client_id) from client t1 right join ( select *,count(id) over(partition by user_id) as number from order_info where datediff(date,"2025-10-15")>0 and status="completed" and product_name in ("C++","Java","Python") ) t2 on t1.id=t2.client_id where t2.number >1 group by t1.name order by (case when t1.name is null then 'GroupBuy' else t1.name end);
点赞

相关推荐

11-18 15:57
门头沟学院 Java
最终归宿是测开:这个重邮的大佬在重邮很有名的,他就喜欢打92的脸,越有人质疑他,他越觉得爽😂
点赞 评论 收藏
分享
dongsheng66:如果想进大厂的话,在校经历没必要占这么大篇幅,可以把专业技能单独放一个专栏写,可以加个项目经历
点赞 评论 收藏
分享
牛客网
牛客企业服务