SELECT PERSON_ID , SUM(RC_COMPLETED_CALL) , SUM(RC_CALLS_LEFT) FROM PS_RC_OM_AGTCMP_VW A , PS_RC_CALL_SUMMRY B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.RA_CAMPAIGN_ID = B.RA_CAMPAIGN_ID AND A.RA_CMPGN_WAVE_ID = B.RA_CMPGN_WAVE_ID GROUP BY PERSON_ID UNION ALL SELECT PERSON_ID , SUM(B.RC_COMPLETED_CALL) , SUM(B.RC_CALLS_LEFT) FROM PS_RC_AGT_SMRY_VW A , PS_RC_CALL_SUMMRY B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.RA_CAMPAIGN_ID = B.RA_CAMPAIGN_ID AND A.RA_CMPGN_WAVE_ID = B.RA_CMPGN_WAVE_ID GROUP BY A.PERSON_ID
|