克里斯V
克里斯V
全部文章
分类
题解(24)
归档
标签
去牛客网
登录
/
注册
克里斯V的博客
全部文章
(共5篇)
题解 | #统计每个学校各难度的用户平均刷题数#
多表关联分组统计 select t1.university ,t3.difficult_level ,round(count(t2.question_id)/count(distinct t2.device_id),4) as avg_...
数据库
Mysql
2022-06-16
0
257
题解 | #平均播放进度大于60%的视频类别#
这道题关键在于要考虑到播放时长大于视频时长的情况 with t as ( select t1.tag ,avg(case when TIMESTAMPDIFF(SECOND,t2.start_time,t2.end_time) < t1.duration &...
数据库
Mysql
2022-06-16
0
515
题解 | #统计每个学校的答过题的用户的平均答题数#
select t1.university ,count(t2.question_id)/count(distinct t1.device_id) as avg_answer_cnt from user_profile t1 join...
数据库
Mysql
2022-06-15
0
251
题解 | #浙江大学用户题目回答情况#
select t1.device_id ,t2.question_id ,t2.result from user_profile t1 join question_practice_detail t2&n...
数据库
Mysql
2022-06-14
0
218
题解 | #各个视频的平均完播率#
with t as ( select t1.video_id ,count(case when timestampdiff(SECOND,t1.start_time,t1.end_time)&...
Mysql
2022-06-04
0
233