首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
讲文明的小龙虾在努力
获赞
0
粉丝
0
关注
1
看过 TA
5
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑讲文明的小龙虾在努力吗?
发布(83)
评论
刷题
收藏
讲文明的小龙虾在努力
关注TA,不错过内容更新
关注
2024-01-24 15:59
题解 | #统计每个学校各难度的用户平均刷题数#
select u.university,qd.difficult_level,count(qpd.question_id)/count(distinct qpd.device_id) as avg_answer_cnt from user_profile as u inner join question_practice_detail as qpd on u.device_id=qpd.device_id inner join question_detail as qd on qpd.question_id=qd.question_id group by university,difficul...
0
点赞
评论
收藏
分享
2024-01-24 15:36
题解 | #统计每个用户的平均刷题数#
select university,difficult_level,count(qpd.question_id)/count(distinct qpd.device_id) as avg_answer_cnt from user_profile as u inner join question_practice_detail as qpd on u.device_id=qpd.device_id inner join question_detail as qd on qpd.question_id=qd.question_id where university='山东大学' group by ...
0
点赞
评论
收藏
分享
2024-01-24 10:35
题解 | #查找山东大学或者性别为男生的信息#
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
点赞
评论
收藏
分享
2024-01-24 10:22
题解 | #截取出年龄#
select substring_index(substring_index(profile,',',-2),',',1) as age,count(device_id) as number from user_submit group by age;
0
点赞
评论
收藏
分享
2024-01-24 10:14
题解 | #提取博客URL中的用户名#
select device_id,substring_index(blog_url,'/',-1)as user_name from user_submit;
0
点赞
评论
收藏
分享
2024-01-24 09:56
题解 | #统计每种性别的人数#
select substring_index(profile,',',-1) as gender,count(device_id) as number from user_submit group by gender;
0
点赞
评论
收藏
分享
2024-01-23 18:11
题解 | #计算用户8月每天的练题数量#
select day(date) as day,count(question_id) as question_cnt from question_practice_detail where date like'2021-08-%' group by day;
0
点赞
评论
收藏
分享
2024-01-23 17:44
题解 | #查看不同年龄段的用户明细#
select device_id,gender, case when age <20 then '20岁以下' when age >=20 and age <=24 then '20-24岁' when age >=25 then '25岁及以上' else '其他' end as age_cut from user_profile;
0
点赞
评论
收藏
分享
2024-01-23 17:31
题解 | #计算25岁以上和以下的用户数量#
select case when age >=25 then '25岁及以上' when age <25 or age is null then '25岁以下' end as age_cut,count(device_id) as number from user_profile group by age_cut;
0
点赞
评论
收藏
分享
2024-01-23 17:07
题解 | #21年8月份练题总数#
select count(distinct device_id)as did_cnt,count(question_id) as question_cnt from question_practice_detail where date like '2021-08%';
0
点赞
评论
收藏
分享
2024-01-23 16:53
题解 | #查找后降序排列#
select device_id,gpa,age from user_profile order by gpa desc,age desc;
0
点赞
评论
收藏
分享
2024-01-23 16:49
题解 | #查找后多列排序#
select device_id,gpa,age from user_profile order by gpa,age;
0
点赞
评论
收藏
分享
2024-01-23 16:44
题解 | #查找后排序#
select device_id,age from user_profile order by age asc;
0
点赞
评论
收藏
分享
2024-01-23 16:42
题解 | #浙大不同难度题目的正确率#
select difficult_level, avg(if(qpd.result="right",1,0))as corret_rate from user_profile as up inner join question_practice_detail as qpd on up.device_id=qpd.device_id inner join question_detail as qd on qpd.question_id=qd.question_id where up.university="浙江大学" group by qd.difficu...
0
点赞
评论
收藏
分享
2024-01-23 16:30
题解 | #浙大不同难度题目的正确率#
select difficult_level, avg(if(qpd.result="right",1,0))as corret_rate from user_profile as up inner join question_practice_detail as qpd on up.device_id=qpd.device_id inner join question_detail as qd on qpd.question_id=qd.question_id where up.university="浙江大学" group by qd.difficu...
0
点赞
评论
收藏
分享
1
2
3
4
5
6
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务