Return
account_type: the type of account (from accounts)month: the year and month of the transaction (format 'YYYY-MM')transaction_count: number of transactions for that account type and monthtotal_amount: sum of amount for that account type and month
Return only rows where transaction_count is greater than zero, ordered by account_type and month ascending.Expected output
| account_type | month | transaction_count | total_amount |
|---|---|---|---|
| 2 rows — values hidden, that's the puzzle | |||
Your query should return 2 rows with these columns. Your column aliases don't need to match.