题解 | #某乎问答单日回答问题数大于等于3个的所有用户#
某乎问答单日回答问题数大于等于3个的所有用户
https://www.nowcoder.com/practice/821e5072663f485f8204cf03b89d322a
select answer_date,author_id,count(author_id) as answer_cnt from answer_tb group by answer_date,author_id having count(author_id)>=3 order by answer_date,author_id
#思路1:将日期分组 ---》 然后对于分组后的author_id计数 如果大于3的话 就满足条件了 剩下的就是最基本的输出 和排序了