fegt

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

SELECT TOP ##NumUsers##
  b.OwnerUserId AS [User Link],
  SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes,
  SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) * 100 / COUNT(a.VoteTypeId) AS PctDownVotes,
  MIN(b.CreationDate) AS OldestPost,
  COUNT(DISTINCT b.Id) AS NumberOfPosts
FROM Votes a
  INNER JOIN Posts b
    ON 
      a.PostId = b.Id
      AND b.PostTypeId IN (1,2) -- Only questions and answers
WHERE 
  a.VoteTypeId IN (2,3) -- Only up and down votes
AND
  b.OwnerUserId > 0
GROUP BY b.OwnerUserId
HAVING COUNT(DISTINCT b.Id) > 15
ORDER BY SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) DESC

Enter Parameters

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