Fsb
2009-07-31 15:24:52 UTC
Hello,
have a source table:
Business Key
Value
1
A
2
B
3
C
Here is my destination table:
Business Key
Value
Active Flag
Import Date
Modified by
1
L
1
1/1/1
Test user
2
B
1
1/1/1
Test user
5
D
1
1/1/1
Test user
I need to update the destination table in three passes:
1. Update new records (i.e Business key 1 Value will be update from 1
to A
2. Add new (I.e. Business key 3 will be added)
3. deactivate records that do not match the source (i.e 5 Active Flag
would be set to 0)
4. If the source and destination match (based on key and Value) to
nothing.
have a source table:
Business Key
Value
1
A
2
B
3
C
Here is my destination table:
Business Key
Value
Active Flag
Import Date
Modified by
1
L
1
1/1/1
Test user
2
B
1
1/1/1
Test user
5
D
1
1/1/1
Test user
I need to update the destination table in three passes:
1. Update new records (i.e Business key 1 Value will be update from 1
to A
2. Add new (I.e. Business key 3 will be added)
3. deactivate records that do not match the source (i.e 5 Active Flag
would be set to 0)
4. If the source and destination match (based on key and Value) to
nothing.