刷个题先
刷个题先
全部文章
分类
归档
标签
去牛客网
登录
/
注册
刷个题先的博客
全部文章
(共27篇)
题解 | #平均播放进度大于60%的视频类别#
select tag, concat(round(avg(if(timestampdiff(second,start_time,end_time)>=duration,100,timestampdiff(second,start_time,end_time)/duration*100)),2)...
2023-01-15
0
248
题解 | #大小写混乱时的筛选统计#
with table1 as ( select tag,count(er.exam_id) answer_cnt from exam_record er left join examination_info ei on er.exam_id=ei.exam_id group by tag) se...
2023-01-05
0
411
题解 | #各用户等级的不同得分表现占比#
with t1 as ( select er.uid,level,score, (case when score<60 then '差' when score>=60 and score<75 then '中' when score>=75 ...
2023-01-05
0
252
题解 | #筛选限定昵称成就值活跃日期的用户#
select uid,nick_name,achievement from user_info where nick_name like "牛客%号" and achievement between 1200 and 2500 and uid in ( select uid from exa...
2023-01-04
0
345
题解 | #连续两次作答试卷的最大时间窗#
虽然做出来了,还是有疑问,我最开始用的date2-date1,结果总是有误,就一个结果不对,不知道为什么,用datediff()就没问题了,想请教下各位大佬这是什么原因,感谢回复 题解: 连续时间差,需要用到偏移函数 题解: select uid, ...
2022-11-15
0
252
题解 | #第二快/慢用时之差大于试卷时长一半的试卷#
要求: 第二快和第二慢用时之差大于试卷时常一半的试卷信息 拆解条件: (1)根据试卷id分组: group by exam_id (2)每个试卷第二快和第二慢用时: &n...
2022-11-15
0
376
题解 | #每个6/7级用户活跃情况#
题目拆解: 一、筛选条件: (1)用户等级:6或者7 where level in (6,7) #...
2022-11-14
0
363
题解 | #满足条件的用户的试卷完成数和题目练习数#
题目解析: 题目要求的是保留2021年有试卷完成记录的用户,故以表examination_record作为主表 条件: (1)试卷:高难度,类别:SOL difficulty='hard' and&nbs...
2022-11-14
0
240
题解 | #作答试卷得分大于过80的人的用户等级分布#
select level,count(uid) level_cnt from user_info ui where uid in( s...
2022-11-11
0
196
题解 | #试卷发布当天作答人数和平均分#
(1)条件: 1.试卷类别SQL: tag='sql' 2.试卷发布当天作答: date_format(submit_time,'%Y%m%d')=date_format(release_time,'%Y...
2022-11-11
0
286
首页
上一页
1
2
3
下一页
末页