SELECT A.BUSINESS_UNIT , A.PROJECT_ID , B.ACTIVITY_ID , %Round(SUM(%DecMult(B.RESOURCE_AMOUNT, C.SIGNED_VALUE)),3) FROM PS_PROJECT A , PS_PC_SUMMARY_TBL B , PS_PROJ_AN_GRP_MAP C WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROJECT_ID = A.PROJECT_ID AND B.CURRENCY_CD = A.CURRENCY_CD AND C.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 C.ANALYSIS_GROUP = A.AN_GRP_ACTV_BUD AND C.ANALYSIS_TYPE = B.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, B.ACTIVITY_ID
|