首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
爱做数据的小女孩
获赞
114
粉丝
2
关注
4
看过 TA
39
女
郑州大学
2022
数据分析师
IP属地:河南
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑爱做数据的小女孩吗?
发布(100)
评论
刷题
收藏
爱做数据的小女孩
关注TA,不错过内容更新
关注
2022-02-20 09:42
郑州大学 数据分析师
题解 | #浙江大学用户题目回答情况#
select p.university,qd.difficult_level count(d.questioin_id) / count(distinc(p.device_id))as avg_answer_cnt from user_profile p join question_practice_detail d on p.device_id = d.device_id join question_detail qd on d.question_id = qd.question_id GROUP BY university,difficult_level 注:格式可能没有调对,但是思路是对...
0
点赞
评论
收藏
分享
2022-02-20 08:51
郑州大学 数据分析师
题解 | #浙江大学用户题目回答情况#
#答题总数量 select count(question_id) from question_practice_detail #用户id select count(distinct device_id) from user_profile 最终结果: select p.university,count(d.question_id) / count(distinct p.device_id) from user_profile p join question_practice_detail d on p.device_id = d.device_id group by p.university
0
点赞
评论
收藏
分享
2022-02-19 11:43
郑州大学 数据分析师
题解 | #浙江大学用户题目回答情况#
#question_practice_detail表用户答题情况 select id,question_id,result from question_practice_detail #将user_profile 与question_practice_detail表进行合并 select * from user_profile p join question_practice_detail d on p.device_id = d.device_id 得出结果: select p.device_id,d.question_id,d.result from user_profile p join...
0
点赞
评论
收藏
分享
2022-02-19 10:35
郑州大学 数据分析师
题解 | #分组排序练习题#
#学校的平均发帖情况 select avg(question_cnt) from user_profile group by university 得出结果: select university,avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt ASC asc是默认的也可不写,容易分不清楚的是用having 还是用order by
0
点赞
评论
收藏
分享
2022-02-19 10:21
郑州大学 数据分析师
题解 | #分组过滤练习题#
#依据学校得出的平均发帖数 select avg(question_cnt) from user_profile group by university #依据学校的出的平均回贴数 select avg(answer_cnt) from user_profile group by university 得出结果: select university,avg(question_cnt),avg(answer_cnt) from user_profile group by university having avg(question_cnt)<5 or avg(answer_cnt)<...
0
点赞
评论
收藏
分享
2022-02-19 10:02
郑州大学 数据分析师
题解 | #分组计算练习题#
关于分组的题本人做的不是特别的好,一旦条件复杂了我就无从下手,但是想起来老师说的一句话,程序是一遍一遍打磨,一次一次磨练出来的,从不完美到完美,为此我根据题意一句一句进行拆解: #30天内平均活跃天数和平均发帖数量 select avg(active_days_within_30),avg(question_cnt) from user_profile #按照学校进行分组的各个学校的用户数 select count(id) from user_profile group by university #每个学校每种性别的用户数 select count(id) from user_profile...
0
点赞
评论
收藏
分享
2022-02-19 09:43
郑州大学 数据分析师
题解 | #计算男生人数以及平均GPA#
使用分组,然后对分组值进行过滤,having 等同于where,where使用于现有值进行过滤,having 使用于对未在表中出现的值(分组)进行过滤 select count(gender),avg(gpa) from user_profile group by gender having gender="male
0
点赞
评论
收藏
分享
2022-02-19 08:29
郑州大学 数据分析师
题解 | #Where in 和Not in#
select device_id,gender,age,university,gpa from user_profile where university="北京大学" or university="山东大学" or university="复旦大学" in 相当于or ,这里也可以用or 进行操作
0
点赞
评论
收藏
分享
2022-02-17 10:55
郑州大学 数据分析师
题解 | #操作符混合运用#
select device_id,gender,age,university,province,gpa from user_profile where (gpa>3.5 and university="山东大学") or (gpa>3.8 and university="复旦大学")
0
点赞
评论
收藏
分享
2022-02-16 09:38
郑州大学 数据分析师
打卡day1
2022.02.16 在牛客打卡1天!
0
点赞
评论
收藏
分享
1
2
3
4
5
6
7
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务