Вы находитесь на странице: 1из 1

select ooha.order_number "Order Number", msib.segment1 "Item Number", msib.description "Item Description" , mcb.segment2 "Class Code", mcb.

segment3 "Sub Class Code", ffvv_class.description "Class Description", ffvv_subclass.Description "Sub Class Description" from OE_ORDER_HEADERS_ALL ooha Inner Join OE_ORDER_LINES_ALL oola on oola.header_id = ooha.header_id inner join mtl_system_items_b msib on msib.inventory_item_id = oola.inventory_it em_id AND msib.organization_id = oola.ship_from_org_id inner join mtl_item_categories mic on mic.inventory_item_id = msib.inventory_it em_id AND mic.organization_id = MSIB.organization_id inner join mtl_categories_b mcb on mic.category_id = mcb.category_id inner join fnd_flex_values_vl ffvv_class on ffvv_class.flex_value = mcb.segment2 inner join FND_ID_FLEX_SEGMENTS fifs on ffvv_class.flex_value_set_id = fifs.flex _value_set_id inner join fnd_flex_values_vl ffvv_subclass on ffvv_subclass.flex_value = mcb.se gment3 inner join FND_ID_FLEX_SEGMENTS fifs_s on ffvv_subclass.flex_value_set_id = fifs _s.flex_value_set_id where ooha.order_number = :ORDER_NUMBER--'3003378' AND fifs_s.segment_name like '%Sub-Class%' AND fifs.segment_name like '%Class%'

Вам также может понравиться