For the example below, I'm wondering how to obtain the total (i.e. the sum of all of the rows in SUM(total_cost). It seems like this should be easy but I've been trying for quite some time now and am still stuck. Any help would be greatly appreciated and I apologize for the "noobishness" of this question.
SELECT cate_id,SUM(total_cost)
FROM purchase
GROUP BY cate_id;
+---------+-----------------+
| cate_id | SUM(total_cost) |
+---------+-----------------+
| CA001 | 1725.00 |
| CA002 | 965.00 |
| CA003 | 900.00 |
+---------+-----------------+