I\'m trying to write a MySQL query to get an average value per month, for all months between to given dates. My idea is this:
Query, something like
S
The easiest way probably is to create a date table containing months and years and union this with your final result.