Si table_2 est vide, essayez l'instruction d'insertion suivante :
insert into table_2 (itemid,location1)
select itemid,quantity from table_1 where locationid=1
Si table_2 contient déjà le itemid valeurs, puis essayez cette instruction de mise à jour :
update table_2 set location1=
(select quantity from table_1 where locationid=1 and table_1.itemid = table_2.itemid)