Loading…
An operations team needs to reconcile closing inventory from inventory_opening and inventory_movements. Closing units equal opening_units plus every signed quantity_change. Preserve products that have no movements.
Return exactly two columns: product_id and closing_units. Return one row per product, ordered by product_id.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.