Write a query to find the month-over-month growth rate of vehicle production using a hypothetical manufacturing database.
Use the production_records and vehicle_models tables. Treat NULL production units as zero. Include every month with recorded production, including months without a directly preceding month.
month_start, total_produced, previous_month_produced, and growth_rate_pctmonth_start| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique production record identifier |
| model_id | INT | Vehicle model reference |
| production_date | DATE | Date on which vehicles were produced |
| units_produced | INT | Number of vehicles produced in the record |
| Column | Type | Description |
|---|---|---|
| model_idPK | INT | Unique vehicle model identifier |
| model_name | VARCHAR(100) | Vehicle model name |