Describe a situation where you had to perform a complex JOIN to reconcile disparate data sources.
Use the provided transaction mapping and source-system records to produce a reconciliation report. Include matched records, amount discrepancies, and records missing from either source.
Output
- One row per reconciled or unmatched transaction reference.
- Columns:
canonical_id, source_a_ref, source_b_ref, source_a_total, source_b_total, amount_difference, and reconciliation_status.
- Include matched, mismatched, and source-missing records. Sort by
canonical_id ascending with unmatched canonical IDs last, then by source references.