Number of active users


Please login or register to vote for this query.

(click on this box to dismiss)

A user is considered "active" if they have > "threshhold" posts=, where "threshhold" is a parameter that can be set by modifying the textbox below.


Q&A for active researchers, academics and students of physics

select [Month], 
       sum(1) ActiveUsers

select Z.[Month], count(Z.ouid) cnt, Z.ouid as [User Link] 
select CAST(
      cast(DATEPART(YYYY, Y.CreationDate) as varchar) + '-' + cast(DATEPART(MM, Y.CreationDate) as varchar) + '-01'
      as datetime) [Month], ouid
  from (
   select p1.creationdate  CreationDate ,p1.owneruserid  ouid from posts p1
      inner join posts p2  on 
      where p1.posttypeid=2
group by p1.owneruserid, p1.creationdate
  ) Y group by ouid, CreationDate
) Z group by Z.ouid,Z.[Month]

) as X where X.cnt>##Threshhold?2##
group by [Month]
order by [Month] asc

Enter Parameters

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