What steps do you take to verify the integrity and accuracy of a commission calculation before sending it to payroll at Adobe?
Using the provided Adobe commission tables, write one PostgreSQL query that validates active representatives' April 2025 commission records. Include representatives with no eligible deals so the output also exposes missing activity.
Output
- One row per active representative, ordered by
rep_name, then rep_id.
- Return
rep_name, eligible_deal_count, eligible_sales, expected_commission, recorded_commission, variance, and verification_status.
- Include closed deals dated in April 2025 only. Flag missing rates, missing recorded commissions, negative amounts, mismatched totals, and representatives with no eligible deals.