How would you assess your current SQL skill level and why?
For this practical assessment, demonstrate your answer with a PostgreSQL query using the supplied policyholder and claim data. The result should show how you handle missing relationships, conditional claim inclusion, aggregation, and comparative ordering.
policyholder_name, risk_segment, claim_count, total_claim_amount, and segment_rank.Open or Closed.risk_segment, segment_rank, then policyholder_name.| Column | Type | Description |
|---|---|---|
| policyholder_idPK | INT | Unique policyholder identifier |
| policyholder_name | VARCHAR(100) | Policyholder display name |
| risk_segment | VARCHAR(30) | Risk classification for the policyholder |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| policyholder_id | INT | Policyholder associated with the claim |
| claim_date | DATE | Date the claim was recorded |
| status | VARCHAR(20) | Current claim status |
| claim_amount | NUMERIC(12,2) | Claim amount |