首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
GB279824
获赞
5
粉丝
0
关注
1
看过 TA
9
中国计量大学
2025
测试工程师
IP属地:浙江
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑GB279824吗?
发布(205)
评论
刷题
收藏
GB279824
关注TA,不错过内容更新
关注
05-19 23:03
中国计量大学 测试工程师
2025-05-19
在牛客打卡8天,今天也很努力鸭!
0
点赞
评论
收藏
分享
05-18 14:11
中国计量大学 测试工程师
2025-05-18
在牛客打卡7天,今天也很努力鸭!
0
点赞
评论
收藏
分享
05-17 21:06
中国计量大学 测试工程师
题解 | 每个月Top3的周杰伦歌曲
select * from( select month(p.fdate) as month, row_number() over(partition by month(fdate) order by count(s.song_id) DESC, p.song_id ASC) as ranking, song_name, count(s.song_id) as play_pv from user_info u left join play_log p on u.user_id = p.user_id left join song_info s on p.song_id = s.song_id w...
0
点赞
评论
收藏
分享
05-17 20:24
中国计量大学 测试工程师
题解 | 浙大不同难度题目的正确率
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 on u.device_id = q.device_id join question_detail qd on q.question_id = qd.question_id where u.university = '浙江大学' group by qd.difficult_level order by correct_rate...
0
点赞
评论
收藏
分享
05-17 20:01
中国计量大学 测试工程师
题解 | 统计复旦用户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_question_cnt # from # user_profile u left join question_practice_detail q # on u.device_id = q.device_id and month(q.date) = '08' # where # u.university = '复旦大学'...
0
点赞
评论
收藏
分享
05-17 19:36
中国计量大学 测试工程师
题解 | 找出每个学校GPA最低的同学
select device_id, university, gpa from user_profile where (university, gpa) in( select university, min(gpa) as gpa from user_profile group by university ) order by university ASC;
0
点赞
评论
收藏
分享
05-17 17:41
中国计量大学 测试工程师
题解 | 截取出年龄
select substring_index(substring_index(profile,',',3),',',-1) as age, count(device_id) as number from user_submit group by age
0
点赞
评论
收藏
分享
05-17 17:37
中国计量大学 测试工程师
题解 | 提取博客URL中的用户名
select device_id, substring_index(blog_url,'/',-1) from user_submit
0
点赞
评论
收藏
分享
05-17 17:35
中国计量大学 测试工程师
题解 | 统计每种性别的人数
select substring_index(profile,',',-1) as gender, count(device_id) from user_submit group by gender
0
点赞
评论
收藏
分享
05-17 17:26
中国计量大学 测试工程师
题解 | 计算用户的平均次日留存率
# 这个理论上知道怎么弄,但是转换到MySQL命令上就毫无头绪 # 看讨论区的解题情况 # select # round(count(distinct q2.device_id,q2.date)/count(distinct q1.device_id,q1.date),4) as avg_ret # from question_practice_detail q1 # left outer join question_practice_detail q2 # on DATEDIFF(q1.date,q2.date)=1 and q1.device_id = q2.device_id; # se...
0
点赞
评论
收藏
分享
05-17 15:49
中国计量大学 测试工程师
题解 | 计算用户8月每天的练题数量
# select # day(date) as day, # count(question_id) as question_cnt # from question_practice_detail # where # date like '2021-08%' # group by # day(date); select day(date) as day, count(question_id) as question_cnt from question_practice_detail where year(date) = 2021 and month(date) = 08 group by day...
0
点赞
评论
收藏
分享
05-17 15:34
中国计量大学 测试工程师
题解 | 查看不同年龄段的用户明细
select device_id, gender, case when age >= 25 then '25岁及以上' when age between 20 and 24 then '20-24岁' when age < 24 then '20岁以下' else '其他' end as age_cut from user_profile;
0
点赞
评论
收藏
分享
05-17 15:15
中国计量大学 测试工程师
题解 | 计算25岁以上和以下的用户数量
select '25岁以下' as age_cut, count(device_id) as number from user_profile where age < 25 or age is null union all select '25岁及以上' as age_cut, count(device_id) as number from user_profile where age >= 25;
0
点赞
评论
收藏
分享
05-17 15:02
中国计量大学 测试工程师
题解 | 查找山东大学或者性别为男生的信息
select device_id, gender, age, gpa from user_profile where university = '山东大学' union all select device_id, gender, age, gpa from user_profile where gender = 'male';
0
点赞
评论
收藏
分享
05-17 14:52
中国计量大学 测试工程师
题解 | 统计每个用户的平均刷题数
# select university, difficult_level, # round(count(answer_cnt)/count(distinct u.device_id),4) as avg_answer_cnt # from user_profile u, question_practice_detail q, question_detail qd # where u.device_id = q.device_id and q.question_id = qd.question_id # and u.university = '山东大学' # group by # u.unive...
0
点赞
评论
收藏
分享
1
9
10
11
12
13
14
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务