Category id and sum of total costs of purchases grouped by category id:
Category id
Sum of total costs of purchases
CA001
1725.00
CA002
965.00
CA003
900.00