SELECT A.BUSINESS_UNIT , A.PROJECT_ID , %Round(SUM(%DecMult(A.RESOURCE_AMOUNT, B.SIGNED_VALUE)), 3) , A.CURRENCY_CD FROM PS_PC_ACTIVITY_SUM A , PS_PROJ_AN_GRP_MAP B , PS_SET_CNTRL_REC CNTRL , PS_PROJECT C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND CNTRL.SETCNTRLVALUE = A.BUSINESS_UNIT AND B.SETID = CNTRL.SETID AND CNTRL.RECNAME = 'PROJ_AN_GRP_MAP' AND B.ANALYSIS_GROUP = C.AN_GRP_TOT_COSTS AND A.ANALYSIS_TYPE = B.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.CURRENCY_CD
|