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

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

https://www.nowcoder.com/practice/f4714f7529404679b7f8909c96299ac4?tpId=199&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Fintelligent%3FdayCountBigMember%3D%25E8%25BF%259E%25E7%25BB%25AD%25E5%258C%2585%25E6%259C%2588%26questionJobId%3D10%26tagId%3D21012%26type%3Dbase

select university,difficult_level,round(count(qpd.question_id) / count(distinct qpd.device_id) ,4) as avg_answer_cnt from question_practice_detail as qpd

inner join user_profile as up on qpd.device_id = up.device_id

inner join question_detail as qd on qd.question_id = qpd.question_id

where university like '%山东%' group by university ,difficult_level;

全部评论

相关推荐

小红书 后端开发 总包n+8w+期权
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务