SQL query compare and replace

@toddayers, Are you using SQL Server? If so, you would need to use MERGE. Sample statement here: