GB279824
GB279824
全部文章
分类
归档
标签
去牛客网
登录
/
注册
GB279824的博客
全部文章
(共162篇)
题解 | 每个月Top3的周杰伦歌曲
select * from( select month(p.fdate) as month, row_number() over(partition by month(fdate) order by count(s.song_id) DESC, ...
2025-05-17
0
23
题解 | 浙大不同难度题目的正确率
select qd.difficult_level, round(AVG(if(q.result = 'right',1,0)),4) as correct_rate from user_profile u join question_practice_detail q o...
2025-05-17
0
25
题解 | 统计复旦用户8月练题情况
# select u.device_id, u.university, # count(q.question_id) as question_cnt, # sum(case when q.result = 'right' then 1 else 0 end) as right_que...
2025-05-17
0
22
题解 | 找出每个学校GPA最低的同学
select device_id, university, gpa from user_profile where (university, gpa) in( select university, min(gpa) as gpa from user_profile group...
2025-05-17
0
18
题解 | 截取出年龄
select substring_index(substring_index(profile,',',3),',',-1) as age, count(device_id) as number from user_submit group by age
2025-05-17
0
19
题解 | 提取博客URL中的用户名
select device_id, substring_index(blog_url,'/',-1) from user_submit
2025-05-17
0
24
题解 | 统计每种性别的人数
select substring_index(profile,',',-1) as gender, count(device_id) from user_submit group by gender
2025-05-17
0
20
题解 | 计算用户的平均次日留存率
# 这个理论上知道怎么弄,但是转换到MySQL命令上就毫无头绪 # 看讨论区的解题情况 # select # round(count(distinct q2.device_id,q2.date)/count(distinct q1.device_id,q1.date),4) as av...
2025-05-17
0
26
题解 | 计算用户8月每天的练题数量
# select # day(date) as day, # count(question_id) as question_cnt # from question_practice_detail # where # date like '2021-08%' # group...
2025-05-17
0
21
题解 | 查看不同年龄段的用户明细
select device_id, gender, case when age >= 25 then '25岁及以上' when age between 20 and 24 then '20-24岁' when age < 24 then '20岁以下' ...
2025-05-17
0
19
首页
上一页
8
9
10
11
12
13
14
15
16
17
下一页
末页