You are on page 1of 1

SELECT a.segment1 bom, d.

segment1 Component FROM mtl_system_items a,

bom_bill_of_materials b,

bom_inventory_components c,

mtl_system_items d

WHERE a.inventory_item_id = b.assembly_item_id

AND b.bill_sequence_id = c.bill_sequence_id

AND a.organization_id = b.organization_id

AND d.organization_id = a.organization_id

AND c.disable_date IS NULL AND c.attribute15 IS NULL

AND d.inventory_item_id = c.component_item_id

AND a.INVENTORY_ITEM_ID IN

(SELECT ASSEMBLY_ITEM_ID FROM bom_bill_Of_materials

WHERE organization_id = 3

AND bill_sequence_ID IN

(SELECT BILL_SEQUENCE_ID FROM bom_inventory_components WHERE disable_date IS NULL


AND attribute15 IS NULL))

AND

d.inventory_item_id IN

(SELECT component_item_id FROM bom_inventory_components WHERE disable_date IS NULL


AND attribute15 IS NULL)

You might also like