insert into table3
(C,D)
select a.A, b.B from table1 a, table2 b