insert into emp (id,first_name,last_name,city,postal_code,ph) select a.id,a.first_name,a.last_name,a.city,a.postal_code,b.ph from emp_addr a inner join emp_ph b on a.id = b.id;