S
SpookiePower
I have a table called TReport which have a date field
called daReportDate (yyyy-mm-dd). I want to count
how many times there is a record for each month in the
table. I tried it this way -
SELECT daReportDate, count(daReportDate)
FROM TReport
WHERE year(daReportDate)=(2007)
group by month(daReportDate)
But it does not work. I'm not sure about the count
and about the Group by.
called daReportDate (yyyy-mm-dd). I want to count
how many times there is a record for each month in the
table. I tried it this way -
SELECT daReportDate, count(daReportDate)
FROM TReport
WHERE year(daReportDate)=(2007)
group by month(daReportDate)
But it does not work. I'm not sure about the count
and about the Group by.