You need a full external connection. For each Account value appearing in any of these tables, this will give the corresponding Ct values ββfor each table if the specified Account value is displayed and null otherwise.
select Account,Ph.Ct as ph_ct,Rx.Ct as rx_ct from Ph full outer join Rx on (Ph.Account=Rx.Account);
Edit: Since Access does not seem to support full outer join (for some terrible reason), you can achieve the same effect with joining the left join with the join right:
select Ph.Account, Ph.Ct as ph_ct, Rx.Ct as rx_ct from Ph left join Rx on (Ph.Account=Rx.Account) union select Rx.Account, Ph.Ct as ph_ct,Rx. Ct as rx_ct from Ph right join Rx on (Ph.Account=Rx.Account);
which is also equivalent (possibly faster):
select Ph.Account, Ph.Ct as ph_ct, Rx.Ct as rx_ct from Ph left join Rx on (Ph.Account=Rx.Account) where (Rx.Account IS NULL) union all select Rx.Account, Ph.Ct as ph_ct, Rx.Ct as rx_ct from Ph right join Rx on (Ph.Account=Rx.Account);
user554546
source share