Q&A for people interested in statistics, machine learning, data analysis, data mining, and data visualization
SELECT PostTypeID, SUM (Score) AS SUM_SCORE, COUNT(*) AS COUNT_SCORE, AVG(CAST(Score AS DECIMAL(12,2))) AS AVG_SCORE FROM Posts GROUP BY PostTypeID HAVING PostTypeID < 3