Average Score for Questions and Answers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Statistical Analysis

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

Enter Parameters

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