select h.difficult_level,count(case when q.result='right' then q.question_id else null end )/count(q.question_id) correct_rate from user_profile u left join question_practice_detail q on u.device_id=q.device_id and `date` like '2021-08%' left join question_detail h on h.question_id=q.question_id whe...