题解 | 统计每个学校的答过题的用户的平均答题数

select university,
round(count(*)/count(distinct s1.device_id),4) as avg_answer_cnt
from user_profile s1, question_practice_detail s2
where s1.device_id=s2.device_id
group by university
order by university

全部评论

相关推荐

点赞 评论 收藏
分享
05-26 09:07
已编辑
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

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