Histogram of this user's post scores

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sports

Q&A for participants in team and individual sport activities

SELECT
  p.Score AS "post score",
  COUNT(*) AS "# posts",
  SUM(CASE WHEN pp.Score <= p.Score THEN 1 ELSE 0 END) AS "cumulative # posts"
FROM Posts p
  JOIN Posts pp ON pp.OwnerUserId = ##UserId:int##
WHERE p.OwnerUserId = ##UserId:int##
GROUP BY p.Score
ORDER BY p.Score DESC

Enter Parameters

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