mysql 查询表中平均分最低的班级
时间:2024-01-22 05:23:45
drop table if exists dd;
create table dd (
user_id int ,
class_no int ,
score int
);
insert into dd values (1,1,1), (2,1,1), (3,1,2), (4,2,2);
select class_no ,avg(score)from dd group by class_no order by avg(score);
在MySQL下面测试通过。
标签:mysql,平均分最低
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
uniapp实现微信H5扫码功能的完整步骤
2024-04-10 16:21:04
![](https://img.aspxhome.com/file/2023/8/136698_0s.png)
SQL触发器实例讲解
2012-04-13 11:52:48
微信小程序去哪里找 小程序到底如何使用(附小程序名单)
2024-05-03 15:07:40
![](https://img.aspxhome.com/file/2023/1/130521_0s.jpg)
MySQL数据库的自动备份与数据库被破坏后的恢复
2010-03-18 15:30:00
使用apidoc管理RESTful风格Flask项目接口文档方法
2022-11-24 10:05:14
![](https://img.aspxhome.com/file/2023/8/75888_0s.jpg)
精美漂亮的php分页类代码
2023-11-22 08:28:09
python抓取网页内容示例分享
2022-04-25 19:02:56
python得到一个excel的全部sheet标签值方法
2022-11-22 15:27:51
SQL 外链接操作小结 inner join left join right join
2024-01-19 21:06:39
浅谈Python xlwings 读取Excel文件的正确姿势
2021-10-15 23:33:36
![](https://img.aspxhome.com/file/2023/3/112553_0s.png)
Prometheus的安装和配置教程详解
2023-03-16 21:38:43
![](https://img.aspxhome.com/file/2023/0/117530_0s.png)
浅谈Python批处理文件夹中的txt文件
2023-03-17 22:58:28
![](https://img.aspxhome.com/file/2023/3/65033_0s.png)
django框架模型层功能、组成与用法分析
2021-10-21 22:00:28
Go语言实现AOI区域视野管理流程详解
2023-06-20 03:21:51
![](https://img.aspxhome.com/file/2023/7/90477_0s.png)
python实现随机梯度下降(SGD)
2021-04-15 19:41:20
GoFrame基于性能测试得知grpool使用场景
2024-05-08 10:52:24
详解Go语言strconv与其他基本数据类型转换函数的使用
2024-04-23 09:42:17
python脚本调用iftop 统计业务应用流量的思路详解
2022-02-07 02:37:12
关于Bootstrap按钮组件消除黄框的方法
2024-05-03 15:07:04
![](https://img.aspxhome.com/file/2023/6/130526_0s.jpg)
WEB开发中合理选择图片格式
2011-09-22 20:32:06