INSERT INTO dest_db.branches SELECT t1.* FROM temp_source_db.branches t1 LEFT JOIN dest_db.branches t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.id = 345;
INSERT INTO dest_db.borrowers SELECT t1.* FROM temp_source_db.borrowers t1 LEFT JOIN dest_db.borrowers t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.client_invoices SELECT t1.* FROM temp_source_db.client_invoices t1 LEFT JOIN dest_db.client_invoices t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_tasks SELECT t1.* FROM temp_source_db.board_tasks t1 LEFT JOIN dest_db.board_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_sub_tasks SELECT t1.* FROM temp_source_db.board_sub_tasks t1 LEFT JOIN dest_db.board_sub_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_task_fields SELECT t1.* FROM temp_source_db.board_task_fields t1 LEFT JOIN dest_db.board_task_fields t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.export_links SELECT t1.* FROM temp_source_db.export_links t1 LEFT JOIN dest_db.export_links t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_recurring_tasks SELECT t1.* FROM temp_source_db.board_recurring_tasks t1 LEFT JOIN dest_db.board_recurring_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.client_invoices SELECT t1.* FROM temp_source_db.client_invoices t1 LEFT JOIN dest_db.client_invoices t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.export_links SELECT t1.* FROM temp_source_db.export_links t1 LEFT JOIN dest_db.export_links t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_recurring_tasks SELECT t1.* FROM temp_source_db.board_recurring_tasks t1 LEFT JOIN dest_db.board_recurring_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_sub_tasks SELECT t1.* FROM temp_source_db.board_sub_tasks t1 LEFT JOIN dest_db.board_sub_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_task_fields SELECT t1.* FROM temp_source_db.board_task_fields t1 LEFT JOIN dest_db.board_task_fields t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.board_tasks SELECT t1.* FROM temp_source_db.board_tasks t1 LEFT JOIN dest_db.board_tasks t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.borrowers SELECT t1.* FROM temp_source_db.borrowers t1 LEFT JOIN dest_db.borrowers t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
INSERT INTO dest_db.export_links SELECT t1.* FROM temp_source_db.export_links t1 LEFT JOIN dest_db.export_links t2 ON t1.id = t2.id WHERE t2.id IS NULL AND t1.branch_id = 345;
