Upvotes for question by month

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT Date, Count(*) AS Amount
  FROM ( 
    SELECT  
        DATEFROMPARTS(DATEPART(YYYY, v.CreationDate), DATEPART(MM, v.CreationDate), 1) AS Date
        
    FROM
        Votes v JOIN Posts p ON v.PostId=p.Id
    WHERE p.Id = ##PostId## AND VoteTypeId In (2,3)
  ) AS Q
GROUP BY Date
ORDER BY Date

Enter Parameters

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