Votes on the SE apology post

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts Meta

Q&A about the site for enthusiasts and power users of the Android operating system

SELECT
CreationDate, 
/*SUM(
  CASE WHEN VoteTypeID = 2 THEN 1 ELSE 0 END
) Upvotes,
SUM(
  CASE WHEN VoteTypeID = 3 THEN 1 ELSE 0 END
) Downvotes,
SUM(
  CASE 
    WHEN VoteTypeID = 2 THEN 1 
    WHEN VoteTypeID = 3 THEN -1 
  END
) ScoreDelta,*/
SUM(
  SUM(
  CASE 
      WHEN VoteTypeID = 2 THEN 1 
      WHEN VoteTypeID = 3 THEN -1 
    END
  )) 
  OVER (ORDER BY CreationDate) AS Score
FROM
  Votes
WHERE
  PostId = 334248 AND (VoteTypeID = 2 OR VoteTypeID = 3)
GROUP BY
  CreationDate
ORDER BY CreationDate

Enter Parameters

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