sashu12
Programmer
- May 16, 2007
- 18
hi all,
I have a source table which needs to be loaded into two targets, depending on a flag value 0 or 1. This flag value is stored in another table.
Actually I need to lookup two tables, the source table and the table which contains the flag is linked by another table
the logic is something like this
table1.attribute1 = (lookup table2.attribute from table2
where table2.attribute = (lookup table3.attribute
from table3
where table3.flag = 1
this is for target1
and similarly i should send it to target2 where flag = 0
can some one help me in implementing this
I have a source table which needs to be loaded into two targets, depending on a flag value 0 or 1. This flag value is stored in another table.
Actually I need to lookup two tables, the source table and the table which contains the flag is linked by another table
the logic is something like this
table1.attribute1 = (lookup table2.attribute from table2
where table2.attribute = (lookup table3.attribute
from table3
where table3.flag = 1
this is for target1
and similarly i should send it to target2 where flag = 0
can some one help me in implementing this