insert into table3 select col2,name,code,age,salary2 from Table2 where col2 in (select col1 from Table1 )