I have category in a table like
table(cat_name,amount);
How to get the sum of amount each cat_name Grouped by cat_name
amount
cat_name
SELECT cat_name, SUM(amount) AS total_amount FROM table GROUP BY cat_name
1.4m articles
1.4m replys
5 comments
57.0k users