sql >> Base de Datos >  >> RDS >> Mysql

Grupo MySQL por SUMA

SELECT cat_name, SUM(amount) AS total_amount
FROM table
GROUP BY cat_name