Challenge: Reconcile Account Balances
Task
Swipe to start coding
Your goal is to find all accounts that are not balancedβwhere the total debits do not match the total credits.
- Calculate the total debits and total credits for each account using conditional aggregation.
- Show only those accounts where these two totals differ.
- Return the account name, the sum of debits, and the sum of credits for each unbalanced account.
- Use the
accountsandentriestables provided in the database.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 4.55
Challenge: Reconcile Account Balances
Swipe to show menu
Task
Swipe to start coding
Your goal is to find all accounts that are not balancedβwhere the total debits do not match the total credits.
- Calculate the total debits and total credits for each account using conditional aggregation.
- Show only those accounts where these two totals differ.
- Return the account name, the sum of debits, and the sum of credits for each unbalanced account.
- Use the
accountsandentriestables provided in the database.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 4
single