robert030975
MIS
- Oct 17, 2006
- 227
bit stuck!!!
I have two temp tbles warehouse in and warehouse out which I want to merge
so if I do a count * based on a specific week I get 857 rows
however when I do
select a.* from #tf_wh_out a left outer join
#tf_wh_in b on
a.despatchwhse = b.code and
a.product = b.product_code and
a.pfinish = b.pfinish and
a.fiscal_week = b.fiscal_week and
a.fiscal_year = b.fiscal_year
where a.fiscal_week = 10 and a.fiscal_year = '07 08'
I still get 857 which is rubbish as I would expect more!!
if I put b.product_code is null it gives me 656 ??
is there a limitation on doing a left outer ??
I have two temp tbles warehouse in and warehouse out which I want to merge
so if I do a count * based on a specific week I get 857 rows
however when I do
select a.* from #tf_wh_out a left outer join
#tf_wh_in b on
a.despatchwhse = b.code and
a.product = b.product_code and
a.pfinish = b.pfinish and
a.fiscal_week = b.fiscal_week and
a.fiscal_year = b.fiscal_year
where a.fiscal_week = 10 and a.fiscal_year = '07 08'
I still get 857 which is rubbish as I would expect more!!
if I put b.product_code is null it gives me 656 ??
is there a limitation on doing a left outer ??