Challenge: Reconcile Account Balances
Aufgabe
Swipe to start coding
Write a SQL query to identify accounts in the balances table where the sum of related transactions in the bank_transactions table does not match the recorded balance.
- For each account in the
balancestable, calculate the sum of all deposits minus all withdrawals from thebank_transactionstable. - Compare this sum to the value in the
balancecolumn of thebalancestable. - Select the
account_idfor accounts where the calculated sum does not equal the recorded balance.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 4
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 4.55
Challenge: Reconcile Account Balances
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write a SQL query to identify accounts in the balances table where the sum of related transactions in the bank_transactions table does not match the recorded balance.
- For each account in the
balancestable, calculate the sum of all deposits minus all withdrawals from thebank_transactionstable. - Compare this sum to the value in the
balancecolumn of thebalancestable. - Select the
account_idfor accounts where the calculated sum does not equal the recorded balance.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 4
single