DBA Data[Home] [Help]

VIEW: APPS.EAM_RESOURCES_V

Source

View Text - Preformatted

SELECT eed.wip_entity_id, eed.organization_id, eed.operations_dept_id, eed.operations_seq_num, bd.department_code, br.resource_code, eed.resource_rate, eed.uom, eed.resource_usage, eed.estimated_cost , m1.meaning, m2.meaning,eed.estimated_cost - (eed.resource_rate*eed.resource_usage) from cst_eam_wo_estimate_details eed, bom_resources br, bom_departments bd, mfg_lookups m1, mfg_lookups m2, wip_operation_resources wor WHERE eed.resource_id=br.resource_id and eed.organization_id=bd.organization_id and bd.department_id=eed.owning_dept_id and br.resource_type=2 and m1.lookup_type='BOM_RESOURCE_TYPE' and m1.lookup_code=2 and m2.lookup_type='CST_BASIS' and wor.basis_type = m2.lookup_code and wor.resource_id = br.resource_id and wor.operation_seq_num = eed.operations_seq_num and wor.wip_entity_id = eed.wip_entity_id and wor.organization_id = eed.organization_id union select eed.wip_entity_id, eed.organization_id, eed.operations_dept_id, eed.operations_seq_num, bd.department_code, br.resource_code, eed.resource_rate, eed.uom, eed.resource_usage, eed.estimated_cost ,m1.meaning, m2.meaning,eed.estimated_cost - (eed.resource_rate*eed.resource_usage) from cst_eam_wo_estimate_details eed, bom_resources br, bom_departments bd, mfg_lookups m1, mfg_lookups m2,wip_operation_resources wor where eed.resource_id=br.resource_id and eed.organization_id=bd.organization_id and bd.department_id=eed.owning_dept_id and br.resource_type=1 and m1.lookup_type='BOM_RESOURCE_TYPE' and m1.lookup_code=1 and m2.lookup_type='CST_BASIS' and wor.basis_type = m2.lookup_code and wor.resource_id = br.resource_id and wor.operation_seq_num = eed.operations_seq_num and wor.wip_entity_id = eed.wip_entity_id and wor.organization_id = eed.organization_id
View Text - HTML Formatted

SELECT EED.WIP_ENTITY_ID
, EED.ORGANIZATION_ID
, EED.OPERATIONS_DEPT_ID
, EED.OPERATIONS_SEQ_NUM
, BD.DEPARTMENT_CODE
, BR.RESOURCE_CODE
, EED.RESOURCE_RATE
, EED.UOM
, EED.RESOURCE_USAGE
, EED.ESTIMATED_COST
, M1.MEANING
, M2.MEANING
, EED.ESTIMATED_COST - (EED.RESOURCE_RATE*EED.RESOURCE_USAGE)
FROM CST_EAM_WO_ESTIMATE_DETAILS EED
, BOM_RESOURCES BR
, BOM_DEPARTMENTS BD
, MFG_LOOKUPS M1
, MFG_LOOKUPS M2
, WIP_OPERATION_RESOURCES WOR
WHERE EED.RESOURCE_ID=BR.RESOURCE_ID
AND EED.ORGANIZATION_ID=BD.ORGANIZATION_ID
AND BD.DEPARTMENT_ID=EED.OWNING_DEPT_ID
AND BR.RESOURCE_TYPE=2
AND M1.LOOKUP_TYPE='BOM_RESOURCE_TYPE'
AND M1.LOOKUP_CODE=2
AND M2.LOOKUP_TYPE='CST_BASIS'
AND WOR.BASIS_TYPE = M2.LOOKUP_CODE
AND WOR.RESOURCE_ID = BR.RESOURCE_ID
AND WOR.OPERATION_SEQ_NUM = EED.OPERATIONS_SEQ_NUM
AND WOR.WIP_ENTITY_ID = EED.WIP_ENTITY_ID
AND WOR.ORGANIZATION_ID = EED.ORGANIZATION_ID UNION SELECT EED.WIP_ENTITY_ID
, EED.ORGANIZATION_ID
, EED.OPERATIONS_DEPT_ID
, EED.OPERATIONS_SEQ_NUM
, BD.DEPARTMENT_CODE
, BR.RESOURCE_CODE
, EED.RESOURCE_RATE
, EED.UOM
, EED.RESOURCE_USAGE
, EED.ESTIMATED_COST
, M1.MEANING
, M2.MEANING
, EED.ESTIMATED_COST - (EED.RESOURCE_RATE*EED.RESOURCE_USAGE)
FROM CST_EAM_WO_ESTIMATE_DETAILS EED
, BOM_RESOURCES BR
, BOM_DEPARTMENTS BD
, MFG_LOOKUPS M1
, MFG_LOOKUPS M2
, WIP_OPERATION_RESOURCES WOR
WHERE EED.RESOURCE_ID=BR.RESOURCE_ID
AND EED.ORGANIZATION_ID=BD.ORGANIZATION_ID
AND BD.DEPARTMENT_ID=EED.OWNING_DEPT_ID
AND BR.RESOURCE_TYPE=1
AND M1.LOOKUP_TYPE='BOM_RESOURCE_TYPE'
AND M1.LOOKUP_CODE=1
AND M2.LOOKUP_TYPE='CST_BASIS'
AND WOR.BASIS_TYPE = M2.LOOKUP_CODE
AND WOR.RESOURCE_ID = BR.RESOURCE_ID
AND WOR.OPERATION_SEQ_NUM = EED.OPERATIONS_SEQ_NUM
AND WOR.WIP_ENTITY_ID = EED.WIP_ENTITY_ID
AND WOR.ORGANIZATION_ID = EED.ORGANIZATION_ID