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

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

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

# 找到谁是‘当月均不小于3’
# select uid
# from exam_record
# group by uid,date_format(submit_time,'%Y%m')
# having count(submit_time)>=3

select tag,count(start_time) tag_cnt
from examination_info ei left join exam_record er using(exam_id)
where uid in (
select uid
from exam_record
group by uid,date_format(submit_time,'%Y%m')
having count(submit_time)>=3
)
group by tag
order by tag_cnt desc
全部评论

相关推荐

Natrium_:这时间我以为飞机票
点赞 评论 收藏
分享
11-02 09:49
已编辑
货拉拉_测试(实习员工)
热爱生活的仰泳鲈鱼求你们别卷了:没事楼主,有反转查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务