Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Detect Duplicate Transactions | Data Accuracy, Reconciliation, and Transaction Logic
/
SQL for Finance and Accounting
セクション 4.  2
single

single

bookChallenge: Detect Duplicate Transactions

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

Write an SQL query to identify accounts where the recorded balance in the balances table does not match the sum of all their transactions in the bank_transactions table. This helps ensure that account balances reflect the actual transaction history.

  • Calculate the net transaction sum for each account by summing deposits and subtracting withdrawals from the bank_transactions table.
  • Compare this calculated sum to the balance recorded in the balances table for each account.
  • Return the account_id, the recorded balance, and the calculated transaction sum for any account where these values do not match.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  2
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt