I have a table holding values for each month of different years.
Entries:
entry_id
entry_date
entry_amount
Now I want a view which holds all entry values, and the cumulative sum of the current year's amounts.
Entries_sum_view:
entry_id
entry_date
entry_amount
entry_cumulative_yearly_sum
where entry_cumulative_yearly_sum = SUM(all entries from Jan 01 of YEAR(entry_date) up to entry_date)
Thanks, Martin