Last active
August 29, 2015 14:24
-
-
Save Page-Carbajal/d2df1eb677a83c6da6e0 to your computer and use it in GitHub Desktop.
Query to Aggregate Published posts by Day
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select post_date, count(post_date) as post_count from wp_posts | |
where post_status = 'publish' | |
and ( post_date between '2015-05-01' And '2015-05-30' ) | |
Group By DAYOFYEAR( post_date ) | |
; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment