Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Reconcile Account Balances | Ledger-Style Joins
SQL for Finance and Accounting
Section 3. Chapter 4
single

single

bookChallenge: 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 accounts and entries tables provided in the database.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt