首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
风起不弃
获赞
6
粉丝
0
关注
6
看过 TA
66
男
门头沟学院
2024
Java
IP属地:河北
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑风起不弃吗?
发布(5)
评论
刷题
收藏
风起不弃
关注TA,不错过内容更新
关注
2023-04-18 14:54
门头沟学院 Java
题解 | #统计每个学校的答过题的用户的平均答题数#
select university,count(question_id)/count(distinct qpd.device_id) from question_practice_detail qpd left join user_profile up on up.device_id = qpd.device_id group by university order by university asc; 结果没有统计 北理的 因为北理没答题 count(distinct qpd.device_id)这种写法也可以 记录
0
点赞
评论
收藏
分享
2023-04-18 14:38
门头沟学院 Java
题解 | #分组计算练习题#
select gender, university, count(1), avg(active_days_within_30), avg(question_cnt) from user_profile group by university,gender; 记录一下分组时 , university,gender
0
点赞
评论
收藏
分享
2023-04-18 14:18
门头沟学院 Java
题解 | #Where in 和Not in#
select device_id, gender, age, university, gpa from user_profile where university in ('北京大学','复旦大学','山东大学'); 多个的用in
0
点赞
评论
收藏
分享
2023-04-18 14:12
门头沟学院 Java
题解 | #用where过滤空值练习#
select device_id, gender, age, university from user_profile where age is not null; 记录一下is not null
0
点赞
评论
收藏
分享
2023-04-18 14:09
门头沟学院 Java
题解 | #查找某个年龄段的用户信息#
select device_id, gender, age from user_profile where age between 20 and 23 记录 between 是闭区间
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务