RienSQL
TASK #99 · Easy · VK

Income from female audience

Your brief
Calculate the income from the female audience (income = sum price * items). Please note that in the table the female audience has the user_gender field “female” or “f”.
Expected columnsincome_from_femaleVK
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Purchasesuser_id, user_gender, items, price