I have this query and the output:
select
ptloc, RMOutcomeAct, RMOutcomePot,
count (RMOutcomeAct) as ActCount,
count (RMOutcomePot) as PotCount,
sum(RxDoseAct) as ActSUM,
sum(RxDosePot) as PotSUM
from Report r, RMInvest m, PharmInvest p, AdminInvest a
where r.ReportNo = m.RMReportNo and...