Mysql
 sql >> Database >  >> RDS >> Mysql

Gruppo MySQL per SUM

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