首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
夏天就是今天
获赞
0
粉丝
0
关注
0
看过 TA
1
中国传媒大学
2024
数据分析师
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑夏天就是今天吗?
发布(21)
评论
刷题
收藏
夏天就是今天
关注TA,不错过内容更新
关注
02-18 13:31
中国传媒大学 数据分析师
题解 | 查找山东大学或者性别为男生的信息
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' union all合并的是查询结果
0
点赞
评论
收藏
分享
02-18 13:07
中国传媒大学 数据分析师
题解 | 统计每个用户的平均刷题数
select university,difficult_level,count(a.question_id)/count(distinct(a.device_id)) as avg_answer_cnt from question_practice_detail as a left join user_profile as b on a.device_id=b.device_id left join question_detail as c on a.question_id=c.question_id group by university,difficult_level having uni...
0
点赞
评论
收藏
分享
02-18 11:54
中国传媒大学 数据分析师
题解 | 统计每个学校各难度的用户平均刷题数
select university,difficult_level,round((count(b.question_id)/count(distinct(b.device_id))),4) as avg_answer_cnt from question_practice_detail as b left join user_profile as a on b.device_id=a.device_id left join question_detail as c on b.question_id=c.question_id group by university,difficult_level...
0
点赞
评论
收藏
分享
02-18 11:14
中国传媒大学 数据分析师
题解 | 统计每个学校的答过题的用户的平均答题数
select a.university,count(b.question_id)/count(distinct(b.device_id)) as avg_answer_cnt from user_profile as a right join question_practice_detail as b on a.device_id=b.device_id group by a.university order by a.university 学生用户数量需要用distinct去除重复项合并数据合并表格可以不用写提取的目标项,直接合并
0
点赞
评论
收藏
分享
02-17 18:36
中国传媒大学 数据分析师
题解 | 浙江大学用户题目回答情况
select device_id,question_id,result from question_practice_detail where device_id in(select device_id from user_profile where university='浙江大学') 要留意标点符号
0
点赞
评论
收藏
分享
02-17 18:18
中国传媒大学 数据分析师
题解 | 分组计算练习题
select gender,university,count(gender) as user_num,avg(active_days_within_30) as avg_active_day,avg(question_cnt) as avg_question_cnt from user_profile group by gender,university order by gender 最后还要排序一下
0
点赞
评论
收藏
分享
1
2
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务