Hi,
What’s the correct way to compare two tables and update table 2 with any missing IDs?
Scenario:
Table 1: has primary key column ‘id’
Table 2: has foreign key column ‘related_id’ linked to Table 1 ‘id’ column
Compare the two tables and insert any missing IDs into table 2 foreign_key ‘related_id’ column