首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
无一技之长怎么办
获赞
48
粉丝
7
关注
0
看过 TA
267
武汉大学
2022
数据分析师
IP属地:浙江
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑无一技之长怎么办吗?
发布(54)
评论
刷题
收藏
无一技之长怎么办
关注TA,不错过内容更新
关注
2023-03-04 15:19
武汉大学 数据分析师
题解 | #检索并列出已订购产品的清单#
select distinct prod_id from OrderItems easy
0
点赞
评论
收藏
分享
2023-03-04 15:18
武汉大学 数据分析师
题解 | #从 Customers 表中检索所有的 ID#
select * from Customers easy
0
点赞
评论
收藏
分享
2023-03-04 12:36
武汉大学 数据分析师
题解 | #21年8月份练题总数#
select count(distinct device_id) as did_cnt, count(question_id) as question_cut from question_practice_detail where date like '2021-08%' group by添加在聚合函数后面,日期还可以用like‘’表示。只写了月份要08,怪不得答案不对哈哈哈哈哈
0
点赞
评论
收藏
分享
2023-03-04 12:24
武汉大学 数据分析师
题解 | #查找后降序排列#
select device_id,gpa,age from user_profile order by gpa desc, age desc 和上一道题思路一样
0
点赞
评论
收藏
分享
2023-03-04 12:20
武汉大学 数据分析师
题解 | #查找后多列排序#
select device_id,gpa,age from user_profile order by gpa asc,age asc # 1/3组用例通过 and改逗号,就出来了。不过不是很懂原理
0
点赞
评论
收藏
分享
2023-03-04 12:10
武汉大学 数据分析师
题解 | #查找后排序#
select device_id,age from user_profile order by age asc 在中等和困难里挣扎后,突然遇到一道入门,也太快乐了
0
点赞
评论
收藏
分享
2023-03-04 12:09
武汉大学 数据分析师
题解 | #浙大不同难度题目的正确率#
select qd.difficult_level, #正确率是答正确的题/总题数 sum(if(result='right',1,0))/count(qpd.question_id) as correct_rate from user_profile as up inner join question_practice_detail as qpd on up.device_id = qpd.device_id and up.university = '浙江大学' inner join question_detail as qd on qpd.question_id = qd.questi...
0
点赞
评论
收藏
分享
2023-03-04 11:40
武汉大学 数据分析师
题解 | #统计复旦用户8月练题情况#
select up.device_id,up.university, count(qpd.question_id) as question_cnt, sum(if(qpd.result='right',1,0)) as right_question_cut from user_profile as up left join question_practice_detail as qpd on up.device_id = qpd.device_id and month(qpd.date)=8 where up.university ='复旦大学' group by up.device_i...
0
点赞
评论
收藏
分享
2023-03-03 20:12
武汉大学 数据分析师
题解 | #找出每个学校GPA最低的同学#
select device_id,university,gpa from user_profile where (university,gpa) in (select university,min(gpa) from user_profile group by university) order by university #说是对不上,所以需要子查询 #这里是用子查询来做的 子查询很重要
0
点赞
评论
收藏
分享
2023-03-03 19:58
武汉大学 数据分析师
题解 | #截取出年龄#
select substring_index(substring_index(profile,',',3),',',-1) as age, count(device_id) as number from user_submit group by age 老是漏写,
0
点赞
评论
收藏
分享
2023-03-03 19:40
武汉大学 数据分析师
题解 | #提取博客URL中的用户名#
select device_id, substring_index(blog_url,'/',-1) from user_submit #group by device_id 有聚合函数的情况下才需要group by
0
点赞
评论
收藏
分享
2023-03-03 19:05
武汉大学 数据分析师
题解 | #统计每种性别的人数#
select substring_index(profile,',',-1) as gender, count(device_id) as number from user_submit group by gender group by和count(device_id)确实是没有想到的
0
点赞
评论
收藏
分享
2023-03-03 17:05
武汉大学 数据分析师
题解 | #计算用户的平均次日留存率#
select count(date2) / count(date1) as avg_ret from ( select distinct qpd.device_id, qpd.date as date1, uniq_id_date.date as date2 from question_practice_detail as qpd left join( select distinct device_id, date from question_practice_detail ) as...
0
点赞
评论
收藏
分享
2023-03-03 16:49
武汉大学 数据分析师
题解 | #计算用户8月每天的练题数量#
select day(date) as day, count(question_id) as question_cnt from question_practice_detail where month(date) = 8 and year(date) = 2021 group by date 一遇上日期的题,直直觉的自己不行,几乎下意识就放弃了
0
点赞
评论
收藏
分享
2023-03-03 16:32
武汉大学 数据分析师
题解 | #计算25岁以上和以下的用户数量#
SELECT Case When age < 25 or age is null then '25岁以下' When age >= 25 then '25岁及以上' End age_cut,count(*)number from user_profile group by age_cut 虽然想到了case when,但是具体怎么运用还是不太清楚
0
点赞
评论
收藏
分享
1
2
3
4
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务