Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Detect Duplicate Transactions | Data Accuracy, Reconciliation, and Transaction Logic
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Finance and Accounting

bookChallenge: Detect Duplicate Transactions

Compito

Swipe to start coding

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 2
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Detect Duplicate Transactions

Scorri per mostrare il menu

Compito

Swipe to start coding

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 2
single

single

some-alt