Handle the edge case where the local column is blank
Get all the destination rows that will need to be modified. This is a combination of all destination rows referenced in this row, plus all the times this row was referenced in the destination.
Filter down to only single instances of each row
Modify each row in the destination table such that it contains all the places where this table mentions that row