I need to display the count of jobs logged by month but include zeros where no jobs have been logged in a mth
SELECT format(DateTimeCreated, "yyyy/mm" As Mnth , count(JobRecords.DateTimeCreated) AS Tot
FROM JobRecords
GROUP BY format(DateTimeCreated, "yyyy/mm"
this returns
2002/04 20
2002/05 34
but i need to return
2001/01 0
2001/02 0
2001/03 0
2001/04 20
2001/05 34
etc up to current mth
not sure if it is possible though.
thanks
jamie
SELECT format(DateTimeCreated, "yyyy/mm" As Mnth , count(JobRecords.DateTimeCreated) AS Tot
FROM JobRecords
GROUP BY format(DateTimeCreated, "yyyy/mm"
this returns
2002/04 20
2002/05 34
but i need to return
2001/01 0
2001/02 0
2001/03 0
2001/04 20
2001/05 34
etc up to current mth
not sure if it is possible though.
thanks
jamie