Write a SQL query to calculate week-over-week changes in stock levels and flag items that fall below reorder thresholds for Acme Fresh Market.
Use the provided product, store, and inventory snapshot data. Include only snapshots from active stores and return weeks that have a prior week for the same item.
Output
- One row per item and week, with
item_name, week_start, current_stock, prior_week_stock, wow_change, wow_change_percent, and below_reorder_threshold
- Include only rows with a prior week, ordered by
item_name and week_start ascending