题解 | #月均完成试卷数不小于3的用户爱作答的类别#

月均完成试卷数不小于3的用户爱作答的类别

https://www.nowcoder.com/practice/b1d13efcfa0c4ecea517afbdb9090845

-- 这个题就答案来讲应该指的就是2021年9月份的
-- 然后这个思路就可以先汇总uid得出大于3的作为子查询用来筛选符合的uid再正常汇总tag
select tag,count(*)
from exam_record e1
left join examination_info e2 on e1.exam_id=e2.exam_id
where uid in
    (select uid
    from exam_record
    where date_format(start_time,'%Y%m')=202109
    group by uid
    having count(submit_time)>=3)
group by tag
order by count(*) desc;

全部评论

相关推荐

05-19 19:54
已编辑
杭州电子科技大学 Java
程序员小白条:《备考软考软件设计师》中级很简单的,不需要花很多时间,除非考软高,这简历找找杭州本地中小厂吧,也很难,项目这块还是最好有自己开发的思考,不要网上的亮点搬过来就行,看运气,本地有优势
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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