How do you ensure the accuracy and integrity of your reports before presenting them to a client?
Write a SQL query to compare each report's reported total with its approved source transactions and return only reports requiring validation.
Output
- One row per exception report, with
report_id, client_name, report_period, reported_total, source_total, difference, and validation_status.
- Include missing source transactions, null source amounts, and total mismatches. Exclude valid reports.
- Order by
report_id ascending.