题解 | #未完成率较高的50%用户近三个月答卷情况#

未完成率较高的50%用户近三个月答卷情况

https://www.nowcoder.com/practice/3e598a2dcd854db8b1a3c48e5904fe1c

select uid,start_month,total_cnt,complete_cnt
from
(select 
    uid,
    date_format(start_time,'%Y%m') as start_month,
    rank() over (partition by uid order by date_format(start_time,'%Y%m') desc) as ranking,
    count(start_time) as total_cnt,
    count(submit_time) as complete_cnt
from exam_record
group by uid,date_format(start_time,'%Y%m')) tb3
join
(select uid 
from
    (select 
         uid,
         percent_rank() over(order by sum(if(score is null,1,0)) /count(start_time) desc) as rnk
     from exam_record er1
     group by uid) tb1 
join user_info using(uid)
where rnk <= 0.5 and level in (6,7))tb2 using(uid)
where ranking <= 3
order by uid,start_month

全部评论

相关推荐

11-06 23:30
已编辑
华中师范大学 后端工程师
点赞 评论 收藏
分享
11-28 16:00
已编辑
武汉理工大学 Java
想干测开的tomca...:这份简历是“短期项目硬堆中大型系统技术”的“技术炫技式造假模板”,槽点密集到能当反面教材: ### 1. 「项目时长」和「技术密度」严重脱节,造假痕迹焊死在简历上 两个项目时长分别是**3个月、2个月**,但堆了Spring AI、Elasticsearch、MinIO、Kafka、ShardingSphere、Docker、Sentinel等近20个中大型项目才用的技术——正常情况下,光把这些中间件的文档看完+环境搭好,3个月都不够,更别说实现“AI多轮对话、分库分表、RBAC权限、大模型调用”这些功能。 说白了:你这不是“做项目”,是把“后端技术栈清单”往项目里硬塞,明摆着“只调用了API,没碰过核心逻辑”。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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