Refresher on Aggregates


You will need to know aggregate functions before attempting the other questions.

We would like to find the total weight of cats grouped by age. But only return those groups with a total weight larger than 12.

Return: age, sum(weight) Order by: age

Show Table Schema

Click me!

Desired output:

age total_weight
2 19.6
4 15.8
5 15.4
view answer

Your output: