ys!
I'm developing a software for a furniture company for keeping furniture cost to date.I'm Saving cost with the quantity and unit price for each material and keep them up to date by updating the material's unit price.For example:
A chair need 3 Gallons of Thinner at $5,but today the price went up and it now cost $6.50.So when I update the unit price of the Thinner now the cost comes up $4.50 more.I have a Products table and a ProductMaterialCost table.What I want to do is update the Materials cost calculation and then update de Products table so the totalcost is now $4.50 more.How do I do this?Can I update the sum directly from database?