Write a SQL query to analyze Mars store performance by joining sales, inventory, and labor tables, and return the key KPIs by store and week.
Use the provided tables and include weeks represented in any source table. Missing source values should not remove a store-week from the results.
Output
- One row per store and week, with
store_id, week_start, net_sales, units_sold, avg_inventory_units, labor_hours, labor_cost, and sales_per_labor_hour.
- Include all store-weeks present in any source table, treating missing additive measures as zero where appropriate and returning NULL when labor hours are zero or unavailable.
- Order by
store_id, then week_start.