TASK #33 · MediumAverage price of caviar
Your brief
Find the average price of caviar based on the data stored in the Payments table. The database stores data on purchases of red caviar and black caviar. The query result should contain one line with the average price of all caviar ever bought. Compute the simple average of unit_price over all purchases, without weighting by amount.
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