方案
Source -> Lkp(dim) -> Expr -> 2Targets (Dim Table and Fact table)
问题
插图
ID col1 col2
401 a 1
402 b 3
403 h 8
ID col1 col2
401 a 1
402 b 3
403 h 8
fcol1 fcol2 fcol3 ID(foreign key to DIM)
aa 11 1 401
bb 33 4 401
dk 44 2 403
col1 col2
h 8
v 6
v 6
fcol1 fcol2 fcol3 ID(foreign key to DIM)
aa 11 1 401
bb 33 4 401
dk 44 2 403
eo 23 5 403
fcol1 fcol2 fcol3 ID(foreign key to DIM)
aa 11 1 401
bb 33 4 401
dk 44 2 403
eo 23 5 403
fa 32 3 404
ID col1 col2
401 a 1
402 b 3
403 h 8
404 v 6
ID col1 col2
401 a 1
402 b 3
403 h 8
<ap> v 6
fcol1 fcol2 fcol3 ID(foreign key to DIM)
aa 11 1 401
bb 33 4 401
dk 44 2 403
eo 23 5 403
fa 32 3 404
ep 53 6 <ap> (I expect 404)