Number of posts per day

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT CAST(CreationDate AS DATE) AS [Date],
     count(Id) as [Count]
FROM Posts
WHERE CreationDate >= '##Date1?2019-01-01##' AND CreationDate <= '##Date2?2021-01-01##'
GROUP BY CAST(CreationDate AS DATE)
ORDER BY CAST(CreationDate AS DATE)

Enter Parameters

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