Jika table_2 kosong, lalu coba masukkan pernyataan berikut:
insert into table_2 (itemid,location1)
select itemid,quantity from table_1 where locationid=1
Jika table_2 sudah berisi itemid nilai, lalu coba pernyataan pembaruan ini:
update table_2 set location1=
(select quantity from table_1 where locationid=1 and table_1.itemid = table_2.itemid)