SELECT Score, AVG(1.0 * AnswerCount) AnswerCount FROM Posts

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

SELECT
  Score,
  AVG(1.0 * AnswerCount) AnswerCount
FROM
  Posts
WHERE
  PostTypeId = 1 AND Score >= 0 AND Score < 100
GROUP BY
  Score
ORDER BY
  Score
  
/*  
SELECT
  AnswerCount,
  AVG(1.0 * Score) Score
FROM
  Posts
WHERE
  PostTypeId = 1
GROUP BY
  AnswerCount
ORDER BY
  AnswerCount*/

Enter Parameters

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