首页 > 数据库技术 > 详细

mysql数据库sql学习

时间:2020-12-16 12:02:15      阅读:22      评论:0      收藏:0      [点我收藏+]

mysql学习

group by学习

SELECT
	product,
	SUM( guidance_price ) AS guidancePrice,
	COUNT( enterprise_name ) AS enterpriseNumber,
	sum( order_quantity ) AS orderQuantity,
	sum( order_amount ) AS orderAmount,
	sum( capacity ) AS capacity,
	sum( yield ) AS yield 
FROM
	enterprise_data 
WHERE
	node_id = ‘CM-CAUS‘ 
GROUP BY
	product

  

mysql数据库sql学习

原文:https://www.cnblogs.com/liubaihui/p/14142779.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!