Questions and Answers per Day

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace

Q&A for members of the workforce navigating the professional setting

SELECT
    CreationDate,
    SUM(CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END) AS Questions,
    SUM(CASE WHEN PostTypeId = 2 THEN 1 ELSE 0 END) AS Answers
FROM
    Posts
WHERE
    PostTypeId = 1 or PostTypeId = 2
GROUP BY
    CreationDate
ORDER BY
    CreationDate Desc

Enter Parameters

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