WineSnob
Not Bright but TENACIOUS
- Local time
- Yesterday, 19:02
- Joined
- Aug 9, 2010
- Messages
- 211
I have a table where I calculate monthly interest for x years. I would like the best way to sum the column Interest for each year (month 1-12, month 13-24, month 25-36 etc..) and update another table where interest is by the year?
Sum column interest where month = 1-12 and update table tblinterest where year = 1 and Bucket = 1
Sum column interest where month = 13-24 and update table tblinterest where year = 2 and Bucket = 1
Sum column interest where month = 25-36 and update table tblinterest where year = 3 and Bucket = 1
etc.... til x years.
Sum column interest where month = 1-12 and update table tblinterest where year = 1 and Bucket = 1
Sum column interest where month = 13-24 and update table tblinterest where year = 2 and Bucket = 1
Sum column interest where month = 25-36 and update table tblinterest where year = 3 and Bucket = 1
etc.... til x years.