Can anyone tell me what I am doing wrong with this basic Update SQL statement?
It seems like a pretty simple problem. I am trying to update a column in FileA (field1) with a column from FileB (field1) where the key fields, field2 and field3, match.
What am I missing?
Thanks!
It seems like a pretty simple problem. I am trying to update a column in FileA (field1) with a column from FileB (field1) where the key fields, field2 and field3, match.
What am I missing?
Thanks!
Code:
UPDATE FileA ;
SET field1= ;
(SELECT FileB.field1 FROM FileB WHERE FileB.field2= FileA.field2 AND FileB.field3= FileA.field3) ;