select count(distinct Id) as count from Users where Id in...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

select count(distinct Id) as count
from Users
where Id in(
  select OwnerUserId
  from Posts
  where CreationDate >= '2008-08-01' and CreationDate < '2019-06-01'
union
  select UserId
  from Comments
  where CreationDate >= '2008-08-01' and CreationDate < '2019-06-01'
)

/*

select
  count(distinct Id) as count,
  eomonth(CreationDate) as CreationMonth
from Users
where Id in(
  select OwnerUserId
  from Posts
union
  select UserId
  from Comments
)
group by eomonth(CreationDate)
order by eomonth(CreationDate) desc

*/

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results