I have created two tables:
In the first table I want to store a computed result in the 3rd column
Table 1
num1|num2|num3
I want to have num3
= num1+num2
, after every update, insert, delete
My second table is for a percent calculation, something like a wishlist
Table 2
value|stored|left
I want to have left
= stored/value
, ie. a percentage of the amount stored vs the value of an item.
How can I set these values up to compute on update, insert, delete?
Original:
i have created two tabels, in first one i try to store the result in the 3'rd column ex: my tabel structure num1|num2|num3
where num3=num1+num2 ,after every update,insert,delete
second tabel is for a percent calculation, something like a wishlist structure: value,stored,left
where value = the value of the object u wanna buy, ex 1250 stored is the ammount that you saved for your wish left is the percent left to achive your goal
same problem like the first tabel