Challenge: Reconcile Account Balances
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.55
Challenge: Reconcile Account Balances
Свайпніть щоб показати меню
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 4
single