RienSQL
TASK #17 · Medium

Family expenses in 2005

Your brief
Determine how much each family member spent in 2005. In the resulting sample, do not output those family members who have not spent anything.
Expected columnsmember_name status costsFamily
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
family_membersmember_id, status, member_name, birthday
goodsgood_id, good_name, type
good_typesgood_type_id, good_type_name
paymentspayment_id, family_member, good, amount, unit_price, date