I have been working quite extensively on a zen cart ecommerce website and I have a good knowledge of php but only a basic knowledge of SQL.
My question relates not to zen cart or php as I've got that covered but rather the interaction between three tables.
Table 1: inventoryexport -> columns: item_num, item_price, item_stock
Table 2: zen_products_supplier -> columns: products_id, australiait_code
Table 3: zen_products -> columns(tonnes but here are the relevant ones): products_id, products_price
Now what I wish to do is to update the "products_price" in the zen_products table with the item_price in the inventory export table by selecting all products where item_num = australiait_code.
I can select the required information with this query but I am not sure how I can then plug this directly into an update query onto the zen_products table.
SELECT zen_products_supplier.products_id, inventoryexport.item_price, inventoryexport.item_stock
FROM zen_products_supplier
INNER JOIN inventoryexport
ON inventoryexport.item_num=zen_products_supplier.australiait_code
Any help would be greatly appreciated.