2016-11-26 71 views

回答

0

SELECT * FROM表1完全外部的table1.txn_key = table2.txn_key加入 表2

0

嘗試

select isnull(f1.txn_key, f2.txn_key) as txn_key 
isnull(f1.pr_cd, f2.pr_cd) as pr_cd, 
f1.type, f1.units as cases, 
f2.type, f2.units as type 
from yourtable1 f1 full outer join yourtable2 f2 
on f1.txn_key=f2.txn_key