Q&A about the site for operations research and analytics professionals, educators, and students
SELECT Comment,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.ReviewTaskTypeId = 2 --close votes GROUP BY rtr.ReviewTaskResultTypeId,Comment