题解 | #所有用户对高难度题目的刷题数#

所有用户对高难度题目的刷题数

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

with cte as( 
select device_id,count(*) as cnt
from question_practice_detail a left join question_detail b using(question_id)
where difficult_level ='hard'
group by device_id  )
select device_id,ifnull(cnt,0) as question_cnt
from user_profile a left join cte b using(device_id)
order by question_cnt,device_id desc;

全部评论

相关推荐

不愿透露姓名的神秘牛友
昨天 18:25
点赞 评论 收藏
分享
认真搞学习:这么良心的老板真少见
点赞 评论 收藏
分享
06-26 15:33
青岛工学院 Java
积极的秋田犬要冲国企:他现在邀请我明天面试
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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