Question Score June 2012, with Vote Creation Date

0

Please login or register to vote for this query.

(click on this box to dismiss)

Japanese Language

Q&A for students, teachers, and linguists wanting to discuss the finer points of the Japanese language

SELECT Users.DisplayName,
    SUM(CASE Votes.VoteTypeId WHEN 2 THEN 1 ELSE 0 END)
    - SUM(CASE Votes.VoteTypeId WHEN 3 THEN -1 ELSE 0 END)
   FROM Posts
   INNER JOIN Users ON Users.ID = Posts.OwnerUserId
   INNER Join Votes ON Votes.PostId = Posts.Id
   WHERE PostTypeId = 1
   AND Posts.CreationDate BETWEEN '2012-06-01' AND '2012-06-30'
   AND Users.DisplayName = 'Izkata'
   GROUP BY Users.DisplayName

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results