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

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

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

select
    b.tag,
    count(b.tag) tag_cnt
from
    exam_record a,
    examination_info b
where
    a.exam_id = b.exam_id
    and a.uid in (
	select
		uid
	from
		exam_record
	where
		submit_time is not null
	group by
		uid,
		date_format (submit_time,
		'%Y%m')
	having
		count(uid) >= 3)

group by
    b.tag
order by
    count(b.tag) desc

全部评论

相关推荐

飞屋一号:实话实说就行,先争取一下能不能线上,不行就直接放弃,付出与回报不成正比
我的求职进度条
点赞 评论 收藏
分享
夏目LTH:这个真的很看运气,多投吧。我从去年十二月底一直投到现在,之前没一个offer,结果两周前投的一家面试官聊的特别好,直接速通offer还给的SP待遇开的比我期望都够。
我的求职进度条
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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