Hello Sander,
of course you can, but this means 12 times parsing the sqlstatement and reqeusting the datas from the database.
There must be an equivalent to the TO_CHAR function in MSQL Server.
You just need the function that gives only the complete month of a date value (lets say this function is called MONTH(x));
Then the statement
SELECT MONTH(date_field), COUNT(*) from table
GROUP BY MONTH(date_field)
This is the better way ... in my opinion
Search the doku for such a command
Let me know if you have further problems.
Manfred Peter
(Alligator Company)
http://www.alligatorsql.com