C++ rankings

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

SELECT
  a.OwnerUserId [User Link],
  MONTH(v.CreationDate) M, YEAR(v.CreationDate) Y,
  SUM
  (
    CASE v.VoteTypeID
    WHEN 2 THEN 1
    WHEN 3 THEN -1
    END
  ) as Score
FROM 
  votes v
    INNER JOIN
  Posts a ON v.PostID = a.ID
   INNER JOIN
  Posts q ON a.parentId = q.id
   INNER JOIN
  PostTags pt ON q.id = pt.PostId
   INNER JOIN
  Tags T ON pt.TagId = t.id
WHERE
  v.voteTypeId in (2,3) AND
  a.PostTypeID = 2 AND
  (
    a.CommunityOwnedDate is null or 
    a.CommunityOwnedDate > v.CreationDate
  ) AND
  a.OwnerUserId IS NOT NULL AND
  t.TagName = 'c++'
GROUP BY
   a.OwnerUserId,
   MONTH(v.CreationDate), YEAR(v.CreationDate),
   t.TagName

Enter Parameters

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