Compare Alabama Staffing reporting snapshot counts against database-derived confirmed placement counts by client and day for January 2024. Return both totals, the discrepancy, and a status that highlights matches, mismatches, and rows missing from one side.
Joining aggregated reporting data to source-of-truth dataUsing CTEs to separate metric definitionsHandling NULLs and missing rows correctlyClassifying discrepancies with CASE