Possible Duplicate:
Are we Going down hill?
In my last post a few people pointed out the that decline in average score and question count was not a good metric for showing the decline of this site.. So here is some additional evidence.
I Basically classified every question as Good, Bad or Ok
Good= A score >1 and Open
Ok= A score =1 and Open
Bad= A score <0 or Closed
Here is The Graph (Including a Line for total)
Here is the SQL:
Select
week.week
,good.cnt as Good
,ok.cnt as ok
,bad.cnt as bad
from
(select distinct
CAST(year(p.CreationDate) as char(4))+'-'+CAST(DATEPART(wk,p.CreationDate) as char(2)) as week
from Posts p
where p.CreationDate>dateadd(yy,-1,getdate())) week
join
(select
CAST(year(p.CreationDate) as char(4))+'-'+CAST(DATEPART(wk,p.CreationDate) as char(2)) as week
,count(1) as Cnt
from Posts p
where score>1 and Closeddate is Null
group by year(p.CreationDate),DATEPART(wk,p.CreationDate)
) good on good.week=week.week
join
(select
CAST(year(p.CreationDate) as char(4))+'-'+CAST(DATEPART(wk,p.CreationDate) as char(2)) as week
,count(1) as Cnt
from Posts p
where score=0 and Closeddate is Null
group by year(p.CreationDate),DATEPART(wk,p.CreationDate)
) ok on ok.week=week.week
join
(select
CAST(year(p.CreationDate) as char(4))+'-'+CAST(DATEPART(wk,p.CreationDate) as char(2)) as week
,count(1) as Cnt
from Posts p
where score<0 or Closeddate is not Null
group by year(p.CreationDate),DATEPART(wk,p.CreationDate)
) bad on bad.week=week.week
order by week.week