I have a target table with Member_key and Month field, I want to update the other fields in the target table when both the member_key and the Month match.
if there is no unique combination of member_key and month existing in the target then i want to insert a new record into it.
my target table MEM_COST should be something like
MEMBER_KEY | Month | Cost | ...
100 3 500
110 3 600
100 4 800
and if i get a new source record with member_key as 100 for month 3 with Cost 300 then the target table's record for the Month 3 and Member_key 100 should be updated with a new value of 300.
I tried to use a lookup with both the conditions for member_key(source) = member_key(target) AND month(source) = month(target) but it inserts duplicates for the same month..instead i shud have a unique combination of a member_key for a month..
ie.. member 100 shud only appear once for April . he can appear again only if the month is May or any other month..
thanks for ur help !!
if there is no unique combination of member_key and month existing in the target then i want to insert a new record into it.
my target table MEM_COST should be something like
MEMBER_KEY | Month | Cost | ...
100 3 500
110 3 600
100 4 800
and if i get a new source record with member_key as 100 for month 3 with Cost 300 then the target table's record for the Month 3 and Member_key 100 should be updated with a new value of 300.
I tried to use a lookup with both the conditions for member_key(source) = member_key(target) AND month(source) = month(target) but it inserts duplicates for the same month..instead i shud have a unique combination of a member_key for a month..
ie.. member 100 shud only appear once for April . he can appear again only if the month is May or any other month..
thanks for ur help !!