I say simple and it probably is but I'm just not seeing it!
I have 2 tables which have a unique identifier (DebtID). I know that in Table 1 there are DebtID's that do NOT appear in Table 2. I need to be able to identify these and add a "flag".
I'm using this but it takes an age probably because of the NOT operator:
UPDATE CleanExtract
SET Renewal = true
WHERE NOT DebtID in (SELECT DebtID FROM DI_Clean);
I have 2 tables which have a unique identifier (DebtID). I know that in Table 1 there are DebtID's that do NOT appear in Table 2. I need to be able to identify these and add a "flag".
I'm using this but it takes an age probably because of the NOT operator:
UPDATE CleanExtract
SET Renewal = true
WHERE NOT DebtID in (SELECT DebtID FROM DI_Clean);