首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
讨厌吃香菜的小山竹在写文章
获赞
1
粉丝
0
关注
0
看过 TA
7
兰州大学
2025
数据分析师
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑讨厌吃香菜的小山竹在写文章吗?
发布(27)
讨厌吃香菜的小山竹在写文章
关注TA,不错过内容更新
关注
2024-06-17 18:10
兰州大学 数据分析师
题解 | #统计每天刷题数超过5的user_id以及刷题数#
select date ,user_id ,sum(pass_count) as total_pass_count from questions_pass_record_detail group by user_id, date having total_pass_count > 5
0
点赞
评论
收藏
分享
2024-06-17 11:20
兰州大学 数据分析师
题解 | #浙大不同难度题目的正确率#
select c.difficult_level as difficult_level ,round(sum(if(a.result = 'right',1 ,0)) / count(a.device_id), 4) as correct_rate from question_practice_detail a left join user_profile b on a.device_id = b.device_id left join question_detail c on a.question_id = c.question_id where university = '浙江大学' gr...
0
点赞
评论
收藏
分享
2024-06-17 11:02
兰州大学 数据分析师
题解 | #统计复旦用户8月练题情况#
select a.device_id ,b.university ,count(a.question_id) as question_cnt ,sum(if(a.result = 'right', 1, 0)) as right_question_cnt from question_practice_detail a left join user_profile b on a.device_id = b.device_id where university = '复旦大学' and left(a.date, 7) = '2021-08' group by a.device_id union a...
0
点赞
评论
收藏
分享
2024-06-17 10:18
兰州大学 数据分析师
题解 | #统计复旦用户8月练题情况#
select up.device_id ,'复旦大学' as university ,count(question_id) as question_cnt ,sum(if(qpd.result='right', 1, 0)) as right_question_cnt from user_profile as up left join question_practice_detail as qpd on qpd.device_id = up.device_id and month(qpd.date) = 8 where up.university = '复旦大学' group by up.de...
0
点赞
评论
收藏
分享
2024-06-17 09:41
兰州大学 数据分析师
题解 | #计算用户的平均次日留存率#
with tmp as( select device_id ,date from question_practice_detail group by device_id, date ) select count(b.device_id) / count(a.device_id) from tmp a left join tmp b on a.device_id = b.device_id and a.date = date_sub(b.date, interval 1 day)
0
点赞
评论
收藏
分享
2024-06-17 09:02
兰州大学 数据分析师
题解 | #找出每个学校GPA最低的同学#
select device_id ,university ,gpa from ( select *, rank() over (partition by university order by gpa) as rk from user_profile ) a where rk=1 order by university
0
点赞
评论
收藏
分享
2024-06-17 08:46
兰州大学 数据分析师
题解 | #截取出年龄#
select substring_index(substring_index(profile, ',', 3), ',', -1) as age ,count(device_id) as number from user_submit group by age
0
点赞
评论
收藏
分享
2024-06-17 08:39
兰州大学 数据分析师
题解 | #提取博客URL中的用户名#
select device_id ,substring_index(blog_url, '/', -1) as user_name from user_submit
0
点赞
评论
收藏
分享
2024-06-17 08:25
兰州大学 数据分析师
题解 | #统计每种性别的人数#
select substring_index(profile, ',', -1) as gender ,count(device_id) as number from user_submit group by gender
0
点赞
评论
收藏
分享
2024-06-16 22:34
兰州大学 数据分析师
题解 | #计算用户8月每天的练题数量#
select day(date) as day ,count(question_id) as question_cnt from question_practice_detail where date like '2021-08-%' group by date
0
点赞
评论
收藏
分享
2024-06-16 22:25
兰州大学 数据分析师
题解 | #计算25岁以上和以下的用户数量#
select case when age < 25 or age is null then '25岁以下' else '25岁及以上' end as age_cut ,count(device_id) as number from user_profile group by age_cut
0
点赞
评论
收藏
分享
2024-06-16 22:18
兰州大学 数据分析师
题解 | #计算25岁以上和以下的用户数量#
select if(age < 25 or age is null, '25岁以下', '25岁及以上') as age_cut ,count(device_id) as number from user_profile group by age_cut
0
点赞
评论
收藏
分享
1
2
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务