Dear All,
How can I update multiple tables by using single update query.
This is not working... Please help
UPDATE tbl_Shp_Order_Dtl, tbl_Cmp_Product
SET tbl_Shp_Order_Dtl.Company_Codes=tbl_Cmp_Product.Company_Codes,
tbl_Shp_Order_Dtl.W_Cost=tbl_Cmp_Product.W_Cost,
tbl_Cmp_Product.Quantity_Sold=tbl_Cmp_Product.Quantity_Sold+1
FROM tbl_Cmp_Product
INNER JOIN tbl_Shp_Order_Dtl
ON tbl_Cmp_Product.Product_Codes = tbl_Shp_Order_Dtl.Product_Codes
AND tbl_Cmp_Product.Characteristics = tbl_Shp_Order_Dtl.Characteristics
WHERE (tbl_Cmp_Product.Company_Codes = 16)
AND (tbl_Shp_Order_Dtl.Order_Dtl_Codes = 74)
Best Regards,
Muhammad T. Alam