I'm working with two data sets related to a number of funds...
Table 1 is a list of transactions related to the fund: (Date|Value|Fund|Description) where deposits and withdrawls are listed.
Table 2 is known balances of the funds, taken at random dates (Date|Fund|BalanceOnDate)
I would like to combine the data sets to calculate gains/losses on the funds that are not masked by deposits and withdrawls.
I've tried using running totals, unions and many other methods but with no success.
Any help appreciated.
Many thanks
Tim