SOja - Number of active posts last month per mod

0

Please login or register to vote for this query.

(click on this box to dismiss)

スタック・オーバーフロー

プログラマーとプログラミングに熱心な人々のための質問と回答

select 
  count(*) PostsLastMonth, 
  3 Moderators, 
  (count(*) / 3) 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