SO Stat

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla

Q&A for Joomla! administrators, users, developers and designers

select 
sum(Score) / convert(decimal(10,3),count(*)) as AvgQuestionScore, 
sum(ViewCount) / convert(decimal(10,3),count(*)) as AvgViewCount,
sum(AnswerCount) / convert(decimal(10,3),count(*)) as AvgAnswerCount,
sum(CommentCount) / convert(decimal(10,3),count(*)) as AvgCommentCount
from Posts as Q where Q.posttypeid = 1 AND 
CreationDate >= '2019-06-26'AND CreationDate < '2019-07-20'

/*
select sum(Score) / convert(decimal(15,3),count(*)) as AverageAnswerScore
from Posts as Q where Q.posttypeid = 2 AND CreationDate >= '2019-06-26'
       AND CreationDate < '2019-07-20'
       
*/

Enter Parameters

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