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

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

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

#不知道错在哪里了?

select tag,count(*) from (select uid,exam_id,avg(submit_time) over(partition by uid,date_format(submit_time,'%y%m') ) avg_cn  from exam_record)a

left  join

(select* from examination_info)b

on a.exam_id=b.exam_id

where  avg_cn>=3

group by tag

全部评论

相关推荐

万物DP:目前可以说没机会了,offer在4月都发完了。把实习用AI改一改投中小厂吧
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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