The following query should work if your reject_date does not have a time portion associated with itSELECT reject_date,COUNT(*) AS DailyRejects
FROM Table_cleanse
WHERE reject_date
BETWEEN CAST('10/01/2012' AS DATETIME)
AND CAST('10/31/2012' AS DATETIME)
GROUP BY reject_date
ORDER BY reject_date;
If it does have a time portion, change the query to thisSELECT
DATEADD(dd,DATEDIFF(dd,0,reject_date),0) AS reject_date,
COUNT(*) AS DailyRejects
FROM Table_cleanse
WHERE reject_date
BETWEEN CAST('10/01/2012' AS DATETIME)
AND CAST('10/31/2012' AS DATETIME)
GROUP BY DATEADD(dd,DATEDIFF(dd,0,reject_date),0)
ORDER BY DATEADD(dd,DATEDIFF(dd,0,reject_date),0);