Question Length Distribution

0

Please login or register to vote for this query.

(click on this box to dismiss)

Web Applications Meta

Q&A about the site for power users of web applications

SELECT
    MIN(LEN(q.Body)) AS MinQuestionLength,
    MAX(LEN(q.Body)) AS MaxQuestionLength,
    AVG(CAST(LEN(q.Body) AS FLOAT)) AS AvgQuestionLength,
    STDEV(LEN(q.Body)) AS StdDevQuestionLength -- Standard Deviation
FROM
    (
        SELECT
            Body
        FROM
            Posts
        WHERE
            PostTypeId = 1 AND -- 1 for Questions
            CreationDate >= DATEADD(YEAR, -1, GETDATE()) -- Questions from the past year
    ) q;

Enter Parameters

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