Write an SQL query to analyze store performance at Albertsons by joining sales, labor, and inventory tables and summarizing key operational metrics by week.
Use the supplied tables and include all sales store-weeks in the requested date range. Treat missing labor or inventory records as zero for numeric totals, while preserving meaningful NULL inventory averages when no usable inventory quantity exists.
Output
- One row per store and Monday-based week beginning January 1, 2025 through January 14, 2025
- Columns:
store_id, week_start, total_sales, total_units_sold, total_labor_hours, total_labor_cost, avg_inventory_units, stockout_days
- Order by
store_id, then week_start ascending