Number of users with at least one post (monthly)

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

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

Enter Parameters

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