discountnapoleandynamite
New member
0
0%
8
Months of Service
0%
I'm encountering an error while trying to subtract one from the 'product_quantity' field in the 'products' table when adding a new customer who has purchased a product. I have two tables named 'customers' and 'products'. I want the quantity of the product the customer purchased to decrease in the 'products' table. The logic seems correct to me, but I'm still getting an error. What could be the issue?