题目解析总题目数:count(question_id)回答正确的题目数:result=right的数量,sum(if(result="right",1,0))限定条件:复旦大学,8月,每个用户(group by device_id) 代码: select s1.device_id,s1.university,s2.question_cnt,s2.right_question_cntfrom (select count(question_id) question_cnt,device_id,sum(if(result="right",1,0)) righ...