Score per 100 bytes graph

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @UserId int = ##UserId##

SELECT
  Len(Body) as 'Bytes',
  100.0 * sum(Score) / (Len(Body) * Count(*)) as 'Score per 100 Bytes'
FROM 
  Posts
WHERE 
  OwnerUserId = @UserId and PostTypeId = 2 and Score > 0
GROUP BY
  Len(Body)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results