SELECT
msi.segment1 AS Item_Code,
msi.DESCRIPTION AS Item_Desc,
mcs.CATEGORY_SET_NAME,
mck.CONCATENATED_SEGMENTS,
mck.SEGMENT1, mck.SEGMENT2, mck.SEGMENT3, mck.SEGMENT4, mck.SEGMENT5,
mck.SEGMENT6, mck.SEGMENT7, mck.SEGMENT8, mck.SEGMENT9, mck.SEGMENT10,
mck.SEGMENT11, mck.SEGMENT12, mck.SEGMENT13, mck.SEGMENT14, mck.SEGMENT15,
mck.SEGMENT16, mck.SEGMENT17, mck.SEGMENT18, mck.SEGMENT19, mck.SEGMENT20
FROM
mtl_system_items_b msi,
mtl_item_categories mic,
MTL_CATEGORIES_KFV mck,
MTL_CATEGORY_SETS_TL mcs
WHERE
msi.INVENTORY_ITEM_ID = mic.INVENTORY_ITEM_ID
AND msi.ORGANIZATION_ID = mic.ORGANIZATION_ID
AND mic.CATEGORY_ID = mck.CATEGORY_ID
AND mcs.CATEGORY_SET_ID = mic.CATEGORY_SET_ID
AND mcs.LANGUAGE = 'US'
AND msi.ORGANIZATION_ID = :P_Org_id
AND mcs.CATEGORY_SET_NAME='Tax Classification'
AND msi.segment1='23542345234'
msi.segment1 AS Item_Code,
msi.DESCRIPTION AS Item_Desc,
mcs.CATEGORY_SET_NAME,
mck.CONCATENATED_SEGMENTS,
mck.SEGMENT1, mck.SEGMENT2, mck.SEGMENT3, mck.SEGMENT4, mck.SEGMENT5,
mck.SEGMENT6, mck.SEGMENT7, mck.SEGMENT8, mck.SEGMENT9, mck.SEGMENT10,
mck.SEGMENT11, mck.SEGMENT12, mck.SEGMENT13, mck.SEGMENT14, mck.SEGMENT15,
mck.SEGMENT16, mck.SEGMENT17, mck.SEGMENT18, mck.SEGMENT19, mck.SEGMENT20
FROM
mtl_system_items_b msi,
mtl_item_categories mic,
MTL_CATEGORIES_KFV mck,
MTL_CATEGORY_SETS_TL mcs
WHERE
msi.INVENTORY_ITEM_ID = mic.INVENTORY_ITEM_ID
AND msi.ORGANIZATION_ID = mic.ORGANIZATION_ID
AND mic.CATEGORY_ID = mck.CATEGORY_ID
AND mcs.CATEGORY_SET_ID = mic.CATEGORY_SET_ID
AND mcs.LANGUAGE = 'US'
AND msi.ORGANIZATION_ID = :P_Org_id
AND mcs.CATEGORY_SET_NAME='Tax Classification'
AND msi.segment1='23542345234'