Question : Get month by month total count

Hi,
I have a mysql table containing many tasks with the submission dates here is a sample row
Sample column
Task_ID Description SubmissionDate
1              AAA            2009-11-06 00:00 .....

How do I write a query to get the  count of tasks for each month between the min-date to max-date:
Sample results:
Month Year Count(*)    
04       2005    120        // (04-2005 is the min(submissionDate))
05       2005    0
06       2005    11
.....
10       2009     5     (10 2009 is the max(sumissionDate)


Thanks
Raz

Answer : Get month by month total count

With the submission date :
1:
SELECT DATE_FORMAT(RQSTDATE,'%m'), DATE_FORMAT(RQSTDATE,'%Y'), COUNT(*) FROM TABLE, (select min(submissionDate) m FROM TABLE) mini, (select MAX(submissionDate) m FROM TABLE) maxi WHERE RQSTDATE BETWEEN mini.m AND maxi.m GROUP BY DATE_FORMAT(RQSTDATE,'%m'), DATE_FORMAT(RQSTDATE,'%Y') ORDER BY RQSTDATE
Random Solutions  
 
programming4us programming4us