/* Formatted on 8/20/2015 8:59:23 AM (QP5 v5.265.14096.37972) */
SELECT mp.organization_code,
msi.segment1 item_number,
msi.description,
msi.item_type,
msi.ATP_RULE_ID,
msi.ATP_FLAG,
msi.FIXED_LOT_MULTIPLIER,
msi.FIXED_ORDER_QUANTITY,
msi.PLANNER_CODE,
msi.SHRINKAGE_RATE,
msi.PLANNING_MAKE_BUY_CODE,
msi.BOM_ITEM_TYPE,
msi.OUTSIDE_OPERATION_FLAG,
msi.LOT_CONTROL_CODE,
msi.REPLENISH_TO_ORDER_FLAG,
msi.CREATION_DATE,
msi.fixed_lead_time,
msi.full_lead_time,
msi.INVENTORY_ITEM_STATUS_CODE,
msi.DEMAND_TIME_FENCE_DAYS,
msi.FIXED_DAYS_SUPPLY,
msi.creation_date item_creation_date,
msi.planning_make_buy_code,
mc.segment1 inv_cat_segment1,
mc.segment2 inv_cat_segment2,
mc.segment3 inv_cat_segment3,
mc1.segment1 plan_cat_segment1,
mc1.segment2 plan_cat_segment2,
mc1.segment3 plan_cat_segment3
FROM apps.mtl_parameters mp,
apps.mtl_system_items_b msi,
apps.mtl_item_categories mic,
apps.mtl_categories mc,
apps.mtl_category_sets mcs,
apps.mtl_item_categories mic1,
apps.mtl_categories mc1,
apps.mtl_category_sets mcs1
WHERE 1 = 1
AND mp.organization_id = msi.organization_id
AND msi.organization_id = mic.organization_id(+)
AND msi.inventory_item_id = mic.inventory_item_id(+)
AND mcs.category_set_name = 'Inventory'
AND mic.category_set_id = mcs.category_set_id(+)
AND mic.category_id = mc.category_id(+)
AND msi.inventory_item_id = mic1.inventory_item_id(+)
AND msi.organization_id = mic1.organization_id(+)
AND mcs1.category_set_name = 'Planning'
AND mic1.category_set_id = mcs1.category_set_id(+)
AND mic1.category_id = mc1.category_id(+)
SELECT mp.organization_code,
msi.segment1 item_number,
msi.description,
msi.item_type,
msi.ATP_RULE_ID,
msi.ATP_FLAG,
msi.FIXED_LOT_MULTIPLIER,
msi.FIXED_ORDER_QUANTITY,
msi.PLANNER_CODE,
msi.SHRINKAGE_RATE,
msi.PLANNING_MAKE_BUY_CODE,
msi.BOM_ITEM_TYPE,
msi.OUTSIDE_OPERATION_FLAG,
msi.LOT_CONTROL_CODE,
msi.REPLENISH_TO_ORDER_FLAG,
msi.CREATION_DATE,
msi.fixed_lead_time,
msi.full_lead_time,
msi.INVENTORY_ITEM_STATUS_CODE,
msi.DEMAND_TIME_FENCE_DAYS,
msi.FIXED_DAYS_SUPPLY,
msi.creation_date item_creation_date,
msi.planning_make_buy_code,
mc.segment1 inv_cat_segment1,
mc.segment2 inv_cat_segment2,
mc.segment3 inv_cat_segment3,
mc1.segment1 plan_cat_segment1,
mc1.segment2 plan_cat_segment2,
mc1.segment3 plan_cat_segment3
FROM apps.mtl_parameters mp,
apps.mtl_system_items_b msi,
apps.mtl_item_categories mic,
apps.mtl_categories mc,
apps.mtl_category_sets mcs,
apps.mtl_item_categories mic1,
apps.mtl_categories mc1,
apps.mtl_category_sets mcs1
WHERE 1 = 1
AND mp.organization_id = msi.organization_id
AND msi.organization_id = mic.organization_id(+)
AND msi.inventory_item_id = mic.inventory_item_id(+)
AND mcs.category_set_name = 'Inventory'
AND mic.category_set_id = mcs.category_set_id(+)
AND mic.category_id = mc.category_id(+)
AND msi.inventory_item_id = mic1.inventory_item_id(+)
AND msi.organization_id = mic1.organization_id(+)
AND mcs1.category_set_name = 'Planning'
AND mic1.category_set_id = mcs1.category_set_id(+)
AND mic1.category_id = mc1.category_id(+)
No comments:
Post a Comment