题解 | #统计每天刷题数超过5的user_id以及刷题数#
统计每天刷题数超过5的user_id以及刷题数
https://www.nowcoder.com/practice/852a14b888c448f1a26f0e2e20f668a7
select date,user_id,sum(pass_count) as total_pass_count from questions_pass_record_detail group by date ,user_id having sum(pass_count) >5 先按照时间和ID分组,然后再筛选答题大于5的,先分组后筛选,所以是group by +having