I have two tables:
- Table 1 with columns
name_markaz nvarchar(100)
,code_markaz nchar(20)
; - Table 2 with columns
name_markaz nvarchar(100)
,code_markaz nchar(20)
;
I want implement this plan, read all data from table 1 and insert into table 2 with this condition:
if table1.code_markaz not found in table 2.code_markaz then
insert the table1.code_markaz into the table2.code_markaz