题解 | #所有用户对高难度题目的刷题数#
所有用户对高难度题目的刷题数
https://www.nowcoder.com/practice/e8b66c069376405bb7524b217c890b23
SELECT device_id ,count(question_id)question_cnt FROM user_profile LEFT JOIN (SELECT device_id,question_id FROM question_practice_detail LEFT JOIN question_detail USING(question_id) WHERE difficult_level='hard')question_info USING(device_id) GROUP BY device_id ORDER BY question_cnt;
必须吐槽一下,美化一下SQL语句,然后就运行报错了,不知道为啥
同样的代码,美化一下就报错。。。