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 convert(decimal(15,3),count(*)) as Count, sum(Score) / convert(decimal(15,3),count(*)) as AverageQuestionScore
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