Posts per day timeline

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
CAST(Posts.CreationDate AS DATE) AS 'date',
COUNT(*) AS 'posts'
FROM Posts
JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId
WHERE OwnerUserId = ##UserId##
  AND PostTypes.Id IN ##type?(1,2)##
  -- type: Post type (1 for questions, 2 for answers):
GROUP BY CAST(Posts.CreationDate AS DATE)
ORDER BY CAST(Posts.CreationDate AS DATE) DESC

Enter Parameters

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