SOpt - Number of active posts last month per mod

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Perguntas e respostas para programadores profissionais e entusiastas

select 
  count(*) PostsLastMonth, 
  6 Moderators, 
  (count(*) / 6) PostsLastMonthPerMod

from Posts

where LastActivityDate >= DATEADD(month, -1, 
                                  (Select max(LastActivityDate) from Posts)
                                )

Enter Parameters

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