题解 | #某乎问答单日回答问题数大于等于3个的所有用户#
某乎问答单日回答问题数大于等于3个的所有用户
http://www.nowcoder.com/practice/821e5072663f485f8204cf03b89d322a
考察 group by 的用法:https://zhuanlan.zhihu.com/p/46869970
题目:请你统计11月份单日回答问题数大于等于3个的所有用户信息
(答题时漏看了)注:若有多条数据符合条件,按answer_date、author_id升序排序。
select answer_date ,author_id ,count(issue_id) answer_cnt from answer_tb where month(answer_date)=11 group by answer_date,author_id having count(issue_id)>=3 order by answer_date,author_id