Total rep gained on the site, per day

1

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

SELECT
  Votes.CreationDate,
  SUM(
    CASE
      WHEN PostsWithDeleted.PostTypeId = 2 THEN
        CASE
          WHEN Votes.VoteTypeId = 2 THEN 10
          WHEN Votes.VoteTypeId = 3 THEN -2
          WHEN Votes.VoteTypeId = 1 THEN 15
        END
      WHEN PostsWithDeleted.PostTypeId = 1 THEN
        CASE
          WHEN Votes.VoteTypeId = 2 THEN 5
          ELSE -2
        END
    END
  ) As Rep
FROM Votes, PostsWithDeleted
WHERE
  Votes.PostId = PostsWithDeleted.Id
  AND
  PostsWithDeleted.PostTypeId IN (1, 2)
  AND
  Votes.VoteTypeId IN (1, 2, 3)
GROUP BY Votes.CreationDate
ORDER BY Votes.CreationDate DESC

Enter Parameters

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