Write a query using window functions to rank fulfillment centers by their average package processing speed per hour at Foundation Robotics Labs.
Use completed processing records with non-null package counts and positive processing durations. Exclude centers without a valid completed processing record.
center_name, average_packages_per_hour, and speed_rank.speed_rank ascending, then center_id ascending.| Column | Type | Description |
|---|---|---|
| center_idPK | INT | Unique fulfillment center identifier |
| center_name | VARCHAR(100) | Fulfillment center name |
| Column | Type | Description |
|---|---|---|
| processing_idPK | INT | Unique processing record identifier |
| center_id | INT | Fulfillment center associated with the record |
| packages_processed | INT | Number of packages processed |
| processing_hours | NUMERIC(8,2) | Hours spent processing the packages |
| status | VARCHAR(20) | Processing record status |