SELECT TOP 100 'site://review/close/'+CAST(rt.Id AS varch...

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 TOP 100
  'site://review/close/'+CAST(rt.Id AS varchar)+'|'+CAST(rt.Id AS varchar) AS 'Id',
COUNT(ReviewTaskResultTypeId)
FROM ReviewTasks rt
JOIN ReviewTaskResults rtr ON rtr.Id = rt.CompletedByReviewTaskId
JOIN ReviewTaskResultTypes rtrt ON rtr.ReviewTaskResultTypeId>6
JOIN Posts p ON rt.PostId = p.Id
WHERE rt.ReviewTaskStateId > 1 --completed or invalidated
  AND rt.ReviewTaskTypeId = 2 --close votes
GROUP BY rtr.ReviewTaskResultTypeId,rt.Id

Enter Parameters

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