Jqiwen
Jqiwen
全部文章
分类
题解(10)
归档
标签
去牛客网
登录
/
注册
Jqiwen的博客
全部文章
(共4篇)
题解 | #查找山东大学男生的GPA#
结果不去重就用union all,去重就用 union。 where university='山东大学' or gender="male"的话,也是去重的。 select device_id,gender,age,gpa from user_profile where university='山东大...
Mysql
2021-11-24
0
190
题解 | #统计每个用户的平均刷题数#
Mysql
2021-11-24
0
318
题解 | #统计每个学校各难度的用户平均刷题数#
select a.university,c.difficult_level, count(a.device_id)/count(distinct a.device_id) ave_answer_cnt from question_practice_detail b inner join us...
Mysql
2021-11-24
0
202
题解 | #SQL类别高难度试卷得分的截断平均值#
本题中使用两种方法: 1.使用where子句过滤条件 :先筛选再分组 2.使用分组group by :分组的结果在进行筛选 1.使用where子句过滤条件 select b.tag,b.difficulty, round((sum(c.score)-min(c.score)-max(c.sco...
Mysql
2021-11-08
0
413