I Have two tables 1st is prodstock and 2nd is orderDetails like following
- prodstock table
I want to use a query that when I update the status of the order table and deliver, the quantity of my product table should also decrease by the amount of quantity in the order table, now I don't know how to do it.

