Chapter 4 · Aggregations
59. Deposit Volume by Day of Week
Medium20 XPFinance
The operations team wants to understand deposit patterns by day of week. For deposit transactions only, return the day of the week (0=Sunday through 6=Saturday using strftime), the count of deposits, and the average deposit amount rounded to 2 decimals. Sort by day_of_week.
Tables
- PKidINT
- FKaccount_id→ accounts.idINT
- transaction_dateTEXT
- typeTEXT
- amountREAL
- balance_afterREAL
- descriptionTEXT
- reference_numberTEXT
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.