Number of Posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

SELECT Count(Id) as UserCount,
      month1, year1
      FROM(

SELECT 
        Id,
        CAST(DATEPART(month, CreationDate) AS numeric) AS month1,
        CAST(DATEPART(year, CreationDate) AS numeric) AS year1
    FROM 
        Users
     GROUP BY Id, CreationDate
        ) AS A 
        GROUP BY Id, month1, year1
        ORDER BY month1, year1

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results