You are on page 1of 1

select segment1,inventory_status_code,organzation_id where inventory_status_code = 'G04 RMAWIP'

SELECT sum(NVL(SUM(ordered_quantity),0)) FROM oe_order_lines_all oel, mtl_System_items_B mti WHERE mti.inventory_item_id = 1555492 AND NVL(oel.open_flag,'X') = 'Y' AND NVL(oel.cancelled_flag,'X') = 'N' and oel.inventory_item_id = mti.inventory_item_id AND oel.ship_from_org_id = mti.organization_id group by oel.ship_from_org_id

You might also like