The distribution of scores on questions
Q&A for programmers
-- Question score distribution -- The distribution of scores on questions WITH TotalPosts AS ( SELECT CAST(COUNT(*) AS FLOAT) AS Count FROM Posts WHERE PostTypeId = 1 ) SELECT Score, Count(*) AS NumQuestions, ROUND( Count(*)/(SELECT Count FROM TotalPosts) *100,3) AS Percentage FROM Posts WHERE PostTypeId = 1 GROUP BY Score ORDER BY Score
Error: looks like you typed in the wrong words - try again