#1088

Event Revenue

Finance is calculating total revenue from a_events: add up amount only for events where kind = 'purchase'. Return one value, revenue; if there are no purchases, the result must be 0.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

revenue
110

Your query result will appear here