首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
一诺_
获赞
0
粉丝
0
关注
7
看过 TA
1
西华大学
2021
Java
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑一诺_吗?
发布(6)
刷题
一诺_
04-03 16:35
Java
题解 | #截取出年龄#
select substring_index(substring_index(profile,',',3),',',-1) age,count(*)number from user_submit group by age 有个疑问select中 count(*) 如果写成 count(age)会报错 为什么?
0
点赞
评论
收藏
转发
一诺_
03-20 11:02
Java
题解 | #查找山东大学或者性别为男生的信息#
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
点赞
评论
收藏
转发
一诺_
03-20 10:47
Java
题解 | #统计每个用户的平均刷题数#
select university,difficult_level,count(qpd.question_id)/count(distinct qpd.device_id) avg_cnt from question_practice_detail qpd join user_profile up on qpd.device_id=up.device_id join question_detail qd on qpd.question_id=qd.question_id where university='山东大学' group by university,diffi...
0
点赞
评论
收藏
转发
一诺_
03-17 16:32
Java
题解 | #浙大不同难度题目的正确率#
select difficult_level,sum(if(result='right',1,0))/count(q.question_id)correct_rate from question_practice_detail q join user_profile u on u.device_id=q.device_id join question_detail qd on q.question_id=qd.question_id where university='浙江大学' group by qd.difficult_level order by correct_rate
0
点赞
评论
收藏
转发
一诺_
03-17 15:43
Java
题解 | #统计复旦用户8月练题情况#
这题花时间在了两个知识点上如下: 1、直接用了count(result='right')来计数正确回答个数 这是错误的 应该用sum(if(result='right',1,0) 2、month(date)条件限制我放在了where后面,导致筛选出来的数据少了8月份没有做题的学生数据, month(date)应该放在 left join on后面 在使用left join时,on 和 where 条件的区别如下: on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 where条件是在临时表生成好后,再对临时表进行过滤的条件。这时已经没有left j...
0
点赞
评论
收藏
转发
一诺_
03-09 21:23
Java
题解 | #找出每个学校GPA最低的同学#
select u1.device_id,u1.university,u1.gpa from user_profile u1 where gpa = ( select min(gpa) from user_profile u2 where u1.university=u2.university) order by university
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务