I have two SQL tables with the same structure. One of them is an updated version of the second. How can I combine 2 so that new table entries take precedence over others, and records that do not have updates in the new table are still included?
Source table ID (primary key):
ID, NAME, ADDRESS
11 AL 1 main street
22 BOB 2 main street
33 CHAZ 3 main street
Updated table
ID, NAME, ADDRESS
11 AL 99 maple street
22 BOB 2 main street
Result I want
ID, NAME, ADDRESS
11 AL 99 maple street
22 BOB 2 main street
33 CHAZ 3 main street
thanks MC
source
share