多表查询一些好的代码比较,上方为案例好代码,下方为自己的代码 SELECT t1.university, t3.difficult_level, COUNT(t2.question_id) / COUNT(DISTINCT(t2.device_id)) as avg_answer_cnt from user_profile as t1, question_practice_detail as t2, question_detail as t3 WHERE t1.university = '山东大学' and t1.device_i...