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.
A free account records your attempt and then reveals the reference answer and the explanation for every exercise in the library.