Describe your process for performing user acceptance testing (UAT) on new calculation logic.
Write a SQL query that compares expected and actual calculation outputs for the same employees and test dates, then flags each row as a pass or fail.
employee_id, test_date, expected_value, actual_value, statusemployee_id, then test_date| Column | Type | Description |
|---|---|---|
| expected_idPK | INT | Primary key for the expected result row |
| employee_id | INT | Employee identifier under test |
| test_date | DATE | Date of the calculation test case |
| expected_value | NUMERIC(12,2) | Expected calculation output for the test case |
| Column | Type | Description |
|---|---|---|
| actual_idPK | INT | Primary key for the actual result row |
| employee_id | INT | Employee identifier under test |
| test_date | DATE | Date of the calculation test case |
| actual_value | NUMERIC(12,2) | Actual calculation output produced by the new logic |