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

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

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

from exam_record er 
left join examination_info ei
on er.exam_id = ei.exam_id
where er.uid in
(
select uid from
(select uid,month(start_time) as month ,count(month(start_time)) as con_cnt
from exam_record
where submit_time is not null
group by uid,month) t1
group by uid
having avg(con_cnt)>=3
)
group by ei.tag
order by tag_cnt desc
全部评论

相关推荐

点赞 评论 收藏
分享
MGlory:我当初有一个老师告诉我简历要写的简单,最好只一面,项目可以写核心的,进面了自然会问你的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务