Write a query to identify the top three busiest fire stations in a given month for Deccan International’s deployment planning.
For the supplied data, evaluate January 2024. Count deployments by station, exclude deployments with a NULL dispatch timestamp, and use station ID ascending as the tie-breaker.
station_id, station_name, and deployment_count.| Column | Type | Description |
|---|---|---|
| station_idPK | INTEGER | Unique fire station identifier |
| station_name | VARCHAR(100) | Fire station display name |
| district | VARCHAR(100) | Operational district for the station |
| Column | Type | Description |
|---|---|---|
| deployment_idPK | INTEGER | Unique deployment identifier |
| station_id | INTEGER | Station assigned to the deployment |
| dispatched_at | TIMESTAMP | Timestamp when the deployment was dispatched |
| incident_type | VARCHAR(80) | Type of incident requiring deployment |