题解 | #统计每个用户的平均刷题数#
统计每个用户的平均刷题数
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;