セクション 4. 章 4
single
Challenge: Reconcile Account Balances
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください