题解 | #某乎问答单日回答问题数大于等于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


全部评论

相关推荐

kl_我是东山啊:《相关公司:阿里巴巴》
投递阿里巴巴等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务