Average Purchase Amount
Finance needs the average purchase amount: use amount only for events where kind = 'purchase'. Round to 2 decimal places and return one value, avg_amount.
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.
| avg_amount |
|---|
| 27.5 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in