SELECT COUNT(ReviewTaskResultTypeId) FROM ReviewTasks rt ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Operations Research Meta

Q&A about the site for operations research and analytics professionals, educators, and students

SELECT
COUNT(ReviewTaskResultTypeId)
FROM ReviewTasks rt
LEFT JOIN ReviewTaskResults rtr ON rtr.Id = rt.CompletedByReviewTaskId
LEFT JOIN ReviewTaskResultTypes rtrt ON rtr.ReviewTaskResultTypeId = rtrt.Id
JOIN Posts p ON rt.PostId = p.Id
WHERE rt.ReviewTaskStateId > 0 --completed or invalidated
  AND rt.ReviewTaskTypeId = 2 --close votes
GROUP BY rtr.ReviewTaskResultTypeId

Enter Parameters

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