Data base SQL 2018

Job ID: 32998849

Budget: $60 – $75 USD

I have 2 databases A and B, I have an inventory in both I want to create a third one in any way it can be up to excel the c that will be the third one must subtract what is taken from the A and C

Example A=3 , C=2. if I get 1 from A I want that in C if it had 5 it only has 4 left