insert into newtable(col1,col2,col3) select tsv1.col1 tsv1.col2 tsv2.col2 from tsv1 inner join tsv2 on tsv1.col2 = tsv2.col2"