Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MySQL-Gruppe von SUM

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