I have two tables. One master and one smaller. I just want to insert all of the rows from the smaller into the master that do not have the same value in a certain field. What I have tried is not working. Also is there a way I can specify all values in row and not list them out individually?
Something like…
Update Master
Set Master.[All Values] = Smaller.[All Values]
Inner join Smaller on Master.No = Smaller.No
where Master.No <> Smaller.No
The problem looks to be that you are trying to equate and negate on the same column (.No) – which will never return any rows. I believe you meant to negate on a different column.
Also, you will need to specify each field for the update statement.
Here is an example of what I think you are looking for: