Question Score June 2012, with Vote Creation Date

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ukrainian Language Meta

Q&A about the site for linguists, teachers and students of the Ukrainian language

--SELECT SUM(CASE Votes.VoteTypeId WHEN 2 THEN 1 ELSE 0 END)
--    - SUM(CASE Votes.VoteTypeId WHEN 3 THEN 1 ELSE 0 END) score,
--    Users.DisplayName
SELECT Posts.Title
   FROM Posts
   INNER JOIN Users ON Users.Id = Posts.OwnerUserId
   INNER JOIN Votes ON Votes.PostId = Posts.Id
   INNER JOIN PostTags ON PostTags.PostId = Posts.Id
   INNER JOIN Tags ON Tags.Id = PostTags.TagId
   WHERE PostTypeId = 1
   AND Posts.CreationDate BETWEEN '2012-06-01' AND '2012-06-30'
   AND Votes.CreationDate BETWEEN '2012-06-01' AND '2012-06-30'
   AND Tags.TagName = 'star-trek'
   AND Users.DisplayName = 'Izkata'
--   GROUP BY Users.DisplayName
   ORDER BY score DESC

Enter Parameters

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