DECLARE @startDate date = '##startDate##'; DECLARE @endD...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

-- Average score of questions by creation date
-- only for unclosed and not community owned questions

DECLARE @startDate date = '##startDate##';
DECLARE @endDate date = '##endDate##';
DECLARE @minScore int = '##minScore##';
DECLARE @maxScore int = '##maxScore##';

select
  cast(a.CreationDate as date),
  Count(*)
from Posts a
inner join Posts q on q.AcceptedAnswerId = a.Id
where (cast(a.CreationDate as date) between @startDate and @endDate) and (a.Score between @minScore and @maxScore)
group by cast(a.CreationDate as date)
order by cast(a.CreationDate as date)

Enter Parameters

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