题解 | #月均完成试卷数不小于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
全部评论

相关推荐

美丽的查理斯不讲武德:包kpi的啊,感觉虾皮一点hc都没有
点赞 评论 收藏
分享
shtdbb_:还不错,没有让你做了笔试再挂你
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务