Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have two tables that I am trying to compare, the syntax in each file is different, but relates one to one.
Example:
Table1, anytime there is an instance of Production Code as "N", change the value to "New".
Table2, Production Code already shows "New".
So then I can compare all ID items to make sure the various values match.
TableName ID Production Code Amount
Table1 1 (N) New 1000
Table2 1 New 1000
A good practice for this is to have a mapping table that has old values and new values and you do a lookup to change all the old values to the new values.
Or, if it just this one value, you could just change it as you load the table ..
Load
If([Production Code]="(N)", 'New', [Production Code]) as [Production Code],
..
from Table1 ...
A good practice for this is to have a mapping table that has old values and new values and you do a lookup to change all the old values to the new values.
Or, if it just this one value, you could just change it as you load the table ..
Load
If([Production Code]="(N)", 'New', [Production Code]) as [Production Code],
..
from Table1 ...