SELECT device_type_name, AVG(rate)FROM tb_device_rate GROUP BY device_type_nameSELECT device_type_name, SUM(rate)FROM tb_device_rate GROUP BY device_type_nameSELECT device_type_name, AVG(rate) AS rateFROM tb_device_rate GROUP BY device_type_name
推荐阅读
- 数据库|SQL行转列方式优化查询性能实践
- mysql|一文深入理解mysql
- 达梦数据库|DM8表空间备份恢复
- 数据技术|一文了解Gauss数据库(开发历程、OLTP&OLAP特点、行式&列式存储,及与Oracle和AWS对比)
- SqlServer|sql server的UPDLOCK、HOLDLOCK试验
- 谈灾难恢复指标(RTO与RPO是什么鬼())
- RPO与RTO
- 数据库|效率最高的Excel数据导入---(c#调用SSIS Package将数据库数据导入到Excel文件中【附源代码下载】)...