Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics Meta

Q&A about the site for scientific skepticism

/* Upvotes by post place

;WITH QuestionsSample AS
  FROM Posts q tablesample(.1 percent)
  WHERE PostTypeId = 1
SELECT q.Id as QuestionId, v.VoteTypeId, COUNT(*) as n
FROM Votes v
  RIGHT OUTER JOIN Posts a ON a.Id = v.PostId
  RIGHT OUTER JOIN QuestionsSample q ON q.Id = a.ParentId
  WHERE v.Id > 0 AND a.Id > 0 AND q.Id > 0 AND (v.VoteTypeId = 2 OR v.VoteTypeId = 3)
GROUP BY q.Id, a.Id, v.VoteTypeId
ORDER BY q.Id, a.Id, v.VoteTypeId

Enter Parameters

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