hi all
I have two unrelated tables with identical fields, called products_now and products_next
the products are identified by the field sku_code
for all the products that are in BOTH tables ONLY, I need to update several fields in the products_now table with the equivalent data in products_next. I've tried the code below, as well as INNER JOIN variations, with no luck
UPDATE products_now SET products_now.product_name =
(SELECT products_next.product_name
FROM products_next
WHERE products_now.sku_code = products_next.sku_code);
any help would be greatly appreciated
thanks
I have two unrelated tables with identical fields, called products_now and products_next
the products are identified by the field sku_code
for all the products that are in BOTH tables ONLY, I need to update several fields in the products_now table with the equivalent data in products_next. I've tried the code below, as well as INNER JOIN variations, with no luck
UPDATE products_now SET products_now.product_name =
(SELECT products_next.product_name
FROM products_next
WHERE products_now.sku_code = products_next.sku_code);
any help would be greatly appreciated
thanks