题解 | 统计每个用户的平均刷题数

统计每个用户的平均刷题数

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

select B.university,C.difficult_level,	
count(B.answer_cnt)/count(distinct A.device_id)
from question_practice_detail A 
Inner join user_profile B
on A.device_id = B.device_id
Inner join question_detail C 
on A.question_id = C.question_id
where B.university = "山东大学"
group by difficult_level

全部评论

相关推荐

投递北京经纬恒润科技股份有限公司等公司10个岗位
点赞 评论 收藏
分享
想玩飞盘的菠萝蜜在春...:上交✌🏻也拒?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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