Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
SELECT TOP(##num?100##) PostId AS [Post Link], COUNT(Id) AS [Reviews], SUM(CASE WHEN (ReviewTaskTypeId=2) THEN 1 ELSE 0 END) AS [Close], SUM(CASE WHEN (ReviewTaskTypeId=6) THEN 1 ELSE 0 END) AS [Reopen], SUM(CASE WHEN (ReviewTaskTypeId=1) THEN 1 ELSE 0 END) AS [SuggEdits], timeline = 'site://posts/' + CAST(PostId AS varchar)+'/timeline', revisions = 'site://posts/' + CAST(PostId AS varchar)+'/revisions' FROM ReviewTasks GROUP BY PostId ORDER BY COUNT(Id) DESC --ReviewTaskTypeId (listed in ReviewTaskTypes) --1 = Suggested Edit --2 = Close Votes --3 = Low Quality Posts --4 = First Post --5 = Late Answer --6 = Reopen Vote --7 = Community Evaluation --8 = Link Validation --9 = Flagged Posts --10 = Triage --11 = Helper