Highest voted comment vs. answer score 2D histogram


Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

SELECT TOP 20 p.Score as [Answer score], c.Score as [Comment score], p.Id as [Post Link]
FROM Posts p
( SELECT c.PostId, MAX(c.Score) as [Score] -- PostId and highest voted comment score
  FROM Comments c
  WHERE c.Score > 0 and c.Score <= ##N:int?30##
  GROUP BY c.PostId) c
ON p.Id = c.PostId
WHERE p.PostTypeId = 2 -- answers
  AND p.ClosedDate is null -- not closed
  AND p.Score >= 0 and p.Score <= ##N:int?30##
ORDER BY p.Score - c.Score

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results