Check out example codes for "how to subtract from the value of a table in sql". It will help you in understanding the concepts better.

Code Example 1

UPDATE Inventory
   SET Quantity = Quantity - 1
 WHERE InventoryID = 2

Learn ReactJs, React Native from akashmittal.com