I am trying to update a column in FileA (field1) with a column from FileB (field1) where the key fields, field2 and field3, match.
The program is updating the field, but with blanks instead of the value from fileB.field1.
Any ideas on what I am doing wrong?
Thanks!
The program is updating the field, but with blanks instead of the value from fileB.field1.
Any ideas on what I am doing wrong?
Thanks!
Code:
UPDATE fileA;
SET fileA.field1 = fileB.field1;
WHERE EXISTS (SELECT fileB.field1 FROM fileB WHERE (fileB.field2 = fileA.field2) AND (fileB.field3 = fileA.field3)) ;