Number of votes (upvotes/downvotes) per month


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

  SUM(Case When VoteTypeId=2 Then 1 Else 0 End) AS UpVotes,
  SUM(Case When VoteTypeId=3 Then 1 Else 0 End) AS DownVotes,
  SUM(Case When VoteTypeId IN (2,3) Then 1 Else 0 End) AS [Up and Down],
  COUNT(Id) AS [All Votes]
FROM Votes
WHERE (CreationDate >= '##Date1?2019-01-01##') AND (CreationDate <= '##Date2?2022-01-01##')
GROUP BY eomonth(CreationDate)
ORDER BY eomonth(CreationDate)

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results