题解 | #统计每个学校各难度的用户平均刷题数#

统计每个学校各难度的用户平均刷题数

https://www.nowcoder.com/practice/5400df085a034f88b2e17941ab338ee8

select university,difficult_level,count(b.question_id)/count(distinct b.device_id)
from user_profile as a right join question_practice_detail as b
on a.device_id=b.device_id 
left join question_detail as c
on b.question_id=c.question_id
group by university,difficult_level;

全部评论

相关推荐

12-19 22:04
武汉大学 Java
点赞 评论 收藏
分享
点赞 评论 收藏
分享
文化小流氓:以后别吃铁锅炖大鹅了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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