Account 85 activity, 8 mo. from March 1, 2025
Instructions
Build a series of 8 consecutive months: from the month starting on March 1, 2025 to the month starting on October 1, 2025, inclusive. For the account with id = 85 (transactions.account_id) output for each month: month, the first day of the month (type date), tx_cnt, the number of transactions with tx_time in that month, income, the sum of positive amount values (inflows), and spent, the sum of negative amount values taken as a positive number (spending). Months without transactions must still be output with zeros in all three columns. Sort by month ascending.
Hints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Table relationships
- N:1Many-to-one
accounts.→client_id clients.id - N:1Many-to-one
transactions.→account_id accounts.id
Table data
Select a table in the diagram or list to view its rows.