I am trying to use update / where in a sql query to match ID’s and then pull the data associated into my table.
I am running into a problem.
First, when I run
UPDATE table1
SET table1.column = table2.column
FROM table2
WHERE table1.columnB = table2.columnB
it works on some and not others. its like 50/50 success. Some of the results are completely wrong and I don’t know why.
Thanks for the help.
The only reason that I can think of is that the join is not one-to-one. That is, there are mutliple rows in table2 that match each row in table1. In this case, the results come from an arbitrary row.