Upvotes/Downvotes by Year

0

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT * FROM (
  SELECT
    DATEPART(YEAR, CreationDate) Y,
    Score,
    COUNT(Score) Posts
  FROM
    Posts
  GROUP BY
    DATEPART(YEAR, CreationDate),
    Score
) SOURCE PIVOT (SUM(Posts) FOR Y IN ([2017], [2018], [2019])) PTABLE

Enter Parameters

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