Q&A about the site for expert genealogists and people interested in genealogy or family history
CREATE TABLE #CSQ (/*Site nvarchar(max),*/ Date date, [Count] int); INSERT INTO #CSQ EXEC dbo.sede_ineachdb @SQLCommand=N' SELECT --Site = [$site name$], Date = EOMONTH(U.CreationDate), [Count] = COUNT(*) FROM Users U GROUP BY EOMONTH(U.CreationDate) ;', @IncludeMetaSites=0; SELECT [Date], SUM([Count]) FROM #CSQ GROUP BY [Date] ORDER BY [Date] ;