题解 | #某乎问答单日回答问题数大于等于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的话 就满足条件了 剩下的就是最基本的输出 和排序了

全部评论

相关推荐

溱元:前端每年固定死几次,看两集广告就复活了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务