insert into FileA
select * from FileB
where ...