I am trying to full join two tables through ODBC but can't seem to get the syntax right, or maybe it's not supported?
select t1.PN, t1.fqty, t2.cqty
from
(select pn,sum(qty) as fqty from invloc where warehouse ="FLORIDA" group by pn) t1
full outer join
(select pn,sum(qty) as cqty from invloc where warehouse ="CALIFORNIA" group by pn ) t2
on
t1.PN = t2.PN
I essentially need to sum up quantities of available inventory, one sum for each warehouse, for each part number, even if sum=0.
Any help is appreciated!
select t1.PN, t1.fqty, t2.cqty
from
(select pn,sum(qty) as fqty from invloc where warehouse ="FLORIDA" group by pn) t1
full outer join
(select pn,sum(qty) as cqty from invloc where warehouse ="CALIFORNIA" group by pn ) t2
on
t1.PN = t2.PN
I essentially need to sum up quantities of available inventory, one sum for each warehouse, for each part number, even if sum=0.
Any help is appreciated!