TASK #27 · MediumSpending by product group in 2005
Your brief
Find out how much was spent on each of the product groups in 2005. Print the name of the group and the total costs spent on it. If there was no spending on a particular product group, i.e., goods from that group were not bought in 2005, do not include it in the report.
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
family_membersmember_id, status, member_name, birthdaygoodsgood_id, good_name, typegood_typesgood_type_id, good_type_namepaymentspayment_id, family_member, good, amount, unit_price, date