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

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

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

select university,difficult_level,
count(*)/count( distinct a.device_id) as avg_answer_cnt 
from user_profile as a left 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  where university ="山东大学" 
group by difficult_level having difficult_level is not null ;
全部评论

相关推荐

求offer的大角牛:不吃香菜
点赞 评论 收藏
分享
秋招不是要开始了吗,我都打算润了,看大家还在找不敢润了
一条从:因为不是人人都像佬一样有实习像我们这种二本仔秋招没有实习也是白忙活
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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