Posts by week with question score = X

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT 
  datepart(year,p.CreationDate)+datepart(week,p.CreationDate)/52 as [date],
  count(Id) 
FROM Posts p
WHERE 
  p.PostTypeId in (1,2) AND 
  p.CreationDate BETWEEN '2014'+'-01-01' AND '2019'+'-12-31'
  and p.ClosedDate is null
  and p.Score >= 0 
GROUP BY 
  datepart(year,p.CreationDate)+datepart(week,p.CreationDate)/52
ORDER BY 
  datepart(year,p.CreationDate)+datepart(week,p.CreationDate)/52

Enter Parameters

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