小亮来给他整个活
小亮来给他整个活
全部文章
分类
归档
标签
去牛客网
登录
/
注册
小亮来给他整个活的博客
全部文章
(共123篇)
题解 | #SQL类别高难度试卷得分的截断平均值#
select tag,difficulty, round((sum(score)-(max(score)+min(score)))/(count(score)-2),1) as clip_avg_score # 计算分数之和减去最大值和最小值然后除以得分数量减去2 from examination_...
2024-07-12
0
134
题解 | #分别满足两个活动的人#
select distinct uid, 'activity2' as activity from examination_info join exam_record using(exam_id) # 内连接两个表 where year(start_time)='2021' and difficul...
2024-06-19
1
169
题解 | #分群并计算群体人数#
划分年龄段(when xx then xx end age_group)之后对年龄段分组(group by age_group) ,然后计算分组数量(count(*)user_count) select case when age > 50 then '50以上' when age >...
2024-05-17
0
120
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页