不用join on连接即可,count(非去重) / count(去重) 求平均值
select university,count(b.device_id) / count(distinct b.device_id) as avg_answer_cnt from user_profile a,question_practice_detail b where a.device_id=b.device_id group by university order by university