Write a SQL query to track weekly production volume, labor hours, and completion rate by site.
Use the provided production, labor, and site records. Calculate weekly results using Monday as the start of the week, include weeks with production activity, and treat missing labor hours as zero.
Output
- One row per site and production week.
- Columns:
site_id, site_name, week_start, production_volume, labor_hours, and completion_rate.
- Include completion rate as a percentage, return
NULL when planned production is zero, and order by site_id and week_start.