Write a SQL query to track weekly production output, defect rate, and on-time shipment by plant, and compare each plant against the Delta Electronics Americas company average. Use all available production records and report weeks beginning on Monday. Treat missing on-time shipment counts as unavailable when calculating the rate.
Output
- One row per plant and production week, ordered by week and plant name.
- Include
week_start, plant_name, output_units, defect_rate_pct, on_time_rate_pct, the three corresponding company averages, and each plant's variance from those averages.
- Round percentage and variance values to two decimal places.