Number of users posting in homework

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

select [Month], 
       sum(1) Questions
   
from
(
  select CAST(
      cast(DATEPART(YYYY, Y.CreationDate) as varchar) + '-' + cast(DATEPART(MM, Y.CreationDate) as varchar) + '-01'
      as datetime) [Month], count(Y.ouid)  cnt
     
  from (
   select p1.creationdate  CreationDate ,p1.owneruserid  ouid from posts p1
      inner join posts p2  on p1.parentid=p2.id 
      where p1.posttypeid=2 and (p2.tags like '%quantum-mechanics%') 
  ) Y group by Y.ouid,Y.CreationDate
) as X where cnt>2
group by [Month]
order by [Month] asc

Enter Parameters

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