最没有意义 | #月均完成试卷数不小于3的用户爱作答的类别#

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

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

select tag, count(1) tag_cnt
from
(select uid, count(score) / count(distinct date_format(start_time, '%Y%m')) c
from exam_record
where score is not null
group by uid) t
left join exam_record r
on t.uid = r.uid
left join examination_info i
on r.exam_id = i.exam_id
where c >= 3
group by tag order by tag_cnt desc;

出题人疑似体育老师代课。

全部评论

相关推荐

04-11 21:31
四川大学 Java
野猪不是猪🐗:(ja)va学弟这招太狠了
点赞 评论 收藏
分享
05-09 12:23
已编辑
华南理工大学 Java
野猪不是猪🐗:给他装的,双九+有实习的能看的上这种厂我直接吃⑨✌们拿它练练面试愣是给他整出幻觉了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务