Your question is Compare Tables and Find Missing Rows. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
The Hanover Insurance Group needs to reconcile a policy administration feed with its daily warehouse snapshot. Write a PostgreSQL query that identifies policies present in only one of the two sources.
policy_number.hanover_policy_feed or hanover_policy_snapshot.policy_number and then discrepancy.| Column | Type | Description |
|---|---|---|
| policy_numberPK | VARCHAR(20) | Unique policy identifier in the warehouse snapshot |
| policy_status | VARCHAR(20) | Policy status captured by the snapshot |
| line_of_business | VARCHAR(40) | Insurance line associated with the policy |
| Column | Type | Description |
|---|---|---|
| policy_numberPK | VARCHAR(20) | Unique policy identifier received from the source feed |
| policy_status | VARCHAR(20) | Policy status received from the source feed |
| line_of_business | VARCHAR(40) | Insurance line received from the source feed |