SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACTIVITY_ID , %Round(SUM(%DecMult(A.RESOURCE_QUANTITY, D.CONVERSION_RATE)), 2) FROM PS_PC_SUMMARY_TBL A , PS_BUS_UNIT_TBL_PC B , PS_BUS_UNIT_OPT_PC C , PS_UNITS_CVT_TBL D , PS_PROJ_AN_GRP_MAP E WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.BUSINESS_UNIT = B.BUSINESS_UNIT AND D.UNIT_OF_MEASURE = A.UNIT_OF_MEASURE AND D.UNIT_OF_MEASURE_TO = B.UOM_HOURS AND E.SETID = ( SELECT I.SETID FROM PS_SET_CNTRL_REC I WHERE I.SETCNTRLVALUE = A.BUSINESS_UNIT AND I.REC_GROUP_ID = 'PC_01' AND I.RECNAME = 'PROJ_AN_GRP_MAP') AND E.ANALYSIS_GROUP = C.AN_GRP_LABOR AND E.ANALYSIS_TYPE = A.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.ACTIVITY_ID
|