Arthur J. Gallagher & needs a regional view of its highest-grossing policies for 2025. Write a PostgreSQL query that joins policy records to their regions, ranks qualifying policies within each region, and returns the top three.
status = 'Active' and an issued_on date in 2025.annual_premium is NULL.policy_id.| Column | Type | Description |
|---|---|---|
| region_idPK | INT | Unique identifier for an operating region |
| region_name | VARCHAR(100) | Name of the operating region |
| Column | Type | Description |
|---|---|---|
| policy_idPK | INT | Unique identifier for a policy |
| region_id | INT | Region associated with the policy |
| status | VARCHAR(20) | Current policy status |
| issued_on | DATE | Date the policy was issued |
| annual_premium | NUMERIC(12,2) | Annual premium amount |