Highmark Health analysts need to identify members whose claims activity exceeds three claims within a calendar month. Write a PostgreSQL query that summarizes qualifying member-month combinations.
DATE_TRUNC.HAVING.members.Claims with a missing service date cannot be assigned to a month and should not qualify. Claims whose member ID does not match members should not appear in the final output.
| Column | Type | Description |
|---|---|---|
| member_idPK | INTEGER | Unique Highmark Health member identifier |
| member_name | VARCHAR(100) | Member display name |
| plan_type | VARCHAR(40) | Member health plan type |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INTEGER | Unique claim identifier |
| member_id | INTEGER | Member associated with the claim |
| service_date | DATE | Date medical services were provided |
| claim_status | VARCHAR(20) | Claim processing status |