I have Table1, where I want to modify previous_sum where previous_sum is the sum of the numbers field in Table 2 up to that specific date. Example:
Table1
Date___|___previous_sum
01/01__|___20
01/02__|___50
01/03__|___100
Table2
Date___|___numbers
01/01__|___20
01/02__|___30
01/03__|___50
So, previous_sum is 0 in the beginning but depending on what is in the numbers field up to that date, I want it to add correspondingly to previous_sum.