Number of users with at least on comment (monthly)


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow на русском Meta

Вопросы и ответы о сайте для программистов

SELECT eomonth(c.CreationDate) [month],
  COUNT(DISTINCT c.UserId) AS [Users],
  COUNT(DISTINCT c.UserDisplayName) AS [Deleted Users],
  CAST(COUNT(DISTINCT c.UserId)+COUNT(DISTINCT c.UserDisplayName) AS Integer) AS [Total Users]
FROM Comments c
WHERE c.CreationDate >= '##Date1?2015-01-01##' AND c.CreationDate <= '##Date2?2021-01-01##'
GROUP BY eomonth(c.CreationDate)
ORDER BY eomonth(c.CreationDate)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results