首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
讲文明的小龙虾在努力
获赞
0
粉丝
0
关注
1
看过 TA
5
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑讲文明的小龙虾在努力吗?
发布(83)
评论
刷题
收藏
讲文明的小龙虾在努力
关注TA,不错过内容更新
关注
2024-01-23 14:26
题解 | #统计复旦用户8月练题情况#
select u1.device_id,u1.university, count(question_id)as question_cnt, sum(case when u2.result='right' then 1 else 0 end) as right_question_cnt from user_profile as u1 left join question_practice_detail as u2 on u1.device_id=u2.device_id and month(u2.date) = '08' where u1.university = "复旦大学"...
0
点赞
评论
收藏
分享
2024-01-23 13:50
题解 | #找出每个学校GPA最低的同学#
select device_id,university,gpa from (select *, row_number() over(partition by university order by gpa) as a from user_profile ) as b where a=1 order by university;
0
点赞
评论
收藏
分享
2024-01-23 10:46
题解 | #统计每个学校的答过题的用户的平均答题数#
select university,count(q.question_id)/count(distinct(u.device_id)) as avg_answer_cnt from user_profile as u,question_practice_detail as q where u.device_id=q.device_id group by university;
0
点赞
评论
收藏
分享
2024-01-23 09:51
题解 | #浙江大学用户题目回答情况#
select device_id,question_id,result from question_practice_detail where device_id in (select device_id from user_profile where university = "浙江大学");
0
点赞
评论
收藏
分享
2024-01-22 17:53
题解 | #分组排序练习题#
select university,avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt;
0
点赞
评论
收藏
分享
2024-01-22 17:38
题解 | #分组过滤练习题#
select university, avg(question_cnt) as avg_question_cnt,avg(answer_cnt) as avg_answer_cnt from user_profile group by university having(avg(question_cnt)<5 or avg(answer_cnt)<20);
0
点赞
评论
收藏
分享
2024-01-22 17:20
题解 | #分组计算练习题#
select gender,university,count(university) as user_num,avg(active_days_within_30) as avg_active_day,avg(question_cnt) as avg_question_cnt from user_profile group by university,gender;
0
点赞
评论
收藏
分享
2024-01-22 17:05
题解 | #计算男生人数以及平均GPA#
select count(gender) as male_num,round(avg(gpa),1) as avg_gpa from user_profile where gender ="male";
0
点赞
评论
收藏
分享
2024-01-22 16:49
题解 | #查找GPA最高值#
select max(gpa) from user_profile where university ="复旦大学";
0
点赞
评论
收藏
分享
2024-01-22 16:45
题解 | #查看学校名称中含北京的用户#
select device_id,age,university from user_profile where university like "%北京%";
0
点赞
评论
收藏
分享
2024-01-16 18:23
题解 | #操作符混合运用#
select device_id,gender,age,university,gpa from user_profile where (gpa > 3.5 and university = "山东大学") or (gpa>3.8 and university = "复旦大学");
0
点赞
评论
收藏
分享
2024-01-16 17:43
题解 | #Where in 和Not in#
select device_id,gender,age,university,gpa from user_profile where university in ("北京大学","复旦大学","山东大学");
0
点赞
评论
收藏
分享
2024-01-16 17:38
题解 | #高级操作符练习(2)#
select device_id,gender,age,university,gpa from user_profile where university ="北京大学" or gpa >3.7;
0
点赞
评论
收藏
分享
2024-01-16 17:31
题解 | #高级操作符练习(1)#
select device_id,gender,age,university,gpa from user_profile where gender = "male" and gpa >3.5;
0
点赞
评论
收藏
分享
2024-01-16 17:25
题解 | #用where过滤空值练习#
select device_id,gender,age,university from user_profile where age is not null;
0
点赞
评论
收藏
分享
1
2
3
4
5
6
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务