You need two Queries. One with Select command for one table, other with select command for the other table. A try to write an example in Delphi, how can this work.
ADOQuery1.SQL.Add(?select * from table1?);
ADOQuery2.SQL.Add(?select * from table2?);
Repeat
Begin;
ADOQuery1.SQL.Clear
ADOQuery1.SQL.Add(?insert into table1(field1,field2) values(?+ADOQuery2.SQL. FieldValues[?fieldA?]+?,?+ ADOQuery2.SQL. FieldValues[?fieldB?]+')');
ADOQuery1.SQL.Execute;
ADOQuery2.Next
End;
Until ADOQuery2.EOF
There are many other possibilities, (for example Visual Foxpro? is the easiest way. ?use table1 append from table2).
I hope help.