I have 2 tables, Products and ShoppingCart and I would like to update and decrease the product\'s \'Quantity\' of the Products table based on the Product name and Quantity speci
You should have a product id. However:
UPDATE Products p INNER JOIN [Shopping Cart] s ON p.[Product Name] = s.[Product Name] SET p.ProductQty = p.ProductQty - s.ProductQty
You should get rid of spaces in field and table names, as well.