Q&A for professors, theologians, and those interested in exegetical analysis of biblical texts
select wk, count(*)/7 qpd from( select wk, max_wk = max(wk) over () from( select wk = concat(datepart(year,creationdate) ,'W' ,format(datepart(week,creationdate),'00')) from posts where posttypeid=1 ) z ) z where wk<>max_wk group by wk order by wk desc;