stf666
stf666
全部文章
分类
归档
标签
去牛客网
登录
/
注册
stf666的博客
全部文章
(共55篇)
题解 | 被重复观看次数最多的3个视频
/*注意:窗口函数不能嵌套,窗口函数中的列必须出现在同层级select中,非聚合列必须在group by中,where和having都不能接窗口函数 连表:cid,pv,rk-----连接course_info_tb和play_record_tb 计数:观看次数n大于1---重复次数记为n 排序:按...
2025-10-19
0
38
题解 | 21年8月份练题总数
select count(distinct device_id) as did_cnt, count(question_id) as question_cnt #练习过题目的总次数包括 同一/不同 用户对 同一/不同 题目的练习次数,所以每条数据都不能舍去 from questi...
2025-10-03
0
35
题解 | 浙大不同难度题目的正确率
select difficult_level, round( sum( case when qpd.result = "right" then 1 else...
2025-10-03
0
52
题解 | 统计复旦用户8月练题情况
#先确定数据(from)和条件(where) select user_profile.device_id as device_id, user_profile.university as university, count(question_id) as question_...
2025-10-03
0
77
题解 | 计算用户的平均次日留存率
select round( sum(case when temp2.device_id is not null then 1 else 0 end) / count(temp1.device_id),4) as avg_ret from (s...
2025-10-03
1
128
首页
上一页
1
2
3
4
5
6
下一页
末页