首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
鸡排菌
获赞
0
粉丝
0
关注
1
看过 TA
0
男
华东师范大学
2025
战略分析
IP属地:上海
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑鸡排菌吗?
发布(7)
评论
刷题
收藏
鸡排菌
关注TA,不错过内容更新
关注
2023-12-29 17:08
华东师范大学 战略分析
题解 | #分群并计算群体人数#
select if(age<20,'20以下',if(age<=50,'20-50' ,if(age>50,'50以上','未填写'))) age_group,count(customer_id) user_countfrom customers_infogroup by age_group
0
点赞
评论
收藏
分享
2023-12-24 23:21
华东师范大学 战略分析
题解 | #得分不小于平均分的最低分#
select score min_score_over_avg from exam_record er left join examination_info ei on er.exam_id=ei.exam_id where tag='SQL' and score>=(select avg(score) from exam_record where exam_id in (select exam_id from examination_info where tag='SQL')) order by min_score_over_avg limit 1 #思路:有两张表(所以肯定要联结,考...
0
点赞
评论
收藏
分享
2023-09-17 11:59
华东师范大学 战略分析
题解 | #统计每个学校各难度的用户平均刷题数#
#方法一 用 (inner)join on来做 格式:join on + join on # select university, difficult_level, round(count(qpd.question_id)/count(distinct(qpd.device_id)),4) as avg_answer_cnt # from user_profile as up # inner join question_practice_detail as qpd # on up.device_id=qpd.device_id # inner join question_detail as q...
0
点赞
评论
收藏
分享
2023-09-17 11:21
华东师范大学 战略分析
题解 | #统计每个学校的答过题的用户的平均答题数#
#方法1 cross join where # select university,round(count(qpd.device_id)/count(distinct(qpd.device_id)),4) as avg_answer_cnt # from user_profile as up # cross join question_practice_detail as qpd # where up.device_id=qpd.device_id # group by up.university # order by up.university asc #方法2 inner join on ...
0
点赞
评论
收藏
分享
2023-09-04 22:43
华东师范大学 战略分析
题解 | #浙江大学用户题目回答情况#
#单独解决device_id这一项,或者连成一张宽表来做 # select device_id,question_id,result # from question_practice_detail # where device_id=( # select device_id # from user_profile # where university='浙江大学' # ) select t1.device_id,question_id,result from question_practice_detail as t1 left join user_profile as t2 on t1.de...
0
点赞
评论
收藏
分享
2023-09-04 22:17
华东师范大学 战略分析
题解 | #分组排序练习题#
select university, round(avg(question_cnt),4) as avg_question_cnt from user_profile group by university order by avg_question_cnt asc round(,4)注意是保留4位小数
0
点赞
评论
收藏
分享
2023-09-04 22:08
华东师范大学 战略分析
题解 | #分组过滤练习题#
select university, round(avg(question_cnt),1) as avg_question_cnt, round(avg(answer_cnt),1) as avg_answer_cnt from user_profile group by university having avg_question_cnt <5 or avg_answer_cnt<20 where>group by>having
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务