Explain the difference between a LEFT JOIN and an INNER JOIN in terms of performance and output when dealing with null values.
Use the provided State Farm policyholder and auto policy data to demonstrate both join results. Return the join type, policyholder details, and policy details, including unmatched policyholders.
join_type, policyholder_id, policyholder_name, policy_id, policy_statusjoin_type, policyholder_id, and policy_id| Column | Type | Description |
|---|---|---|
| policyholder_idPK | INT | Unique policyholder identifier |
| policyholder_name | VARCHAR(100) | Policyholder display name |
| state_code | VARCHAR(2) | Two-letter state code |
| Column | Type | Description |
|---|---|---|
| policy_idPK | INT | Unique auto policy identifier |
| policyholder_id | INT | Associated policyholder identifier |
| policy_status | VARCHAR(20) | Current policy status |
| coverage_type | VARCHAR(30) | Type of auto coverage |