Q&A for scientists using computers to solve scientific problems
SELECT COUNT(Id), CAST(DATEPART(month, CreationDate) AS numeric) AS month1, CAST(DATEPART(year, CreationDate) AS numeric) AS year1, Location FROM Users GROUP BY Id, CAST(DATEPART(month, CreationDate) AS numeric), CAST(DATEPART(year, CreationDate) AS numeric), Location