SQL query appears incorrect?
-
I’m using the following SQL code query to return a chart of the posts published each day:
select count(*) as total_posts , date(post_date) as posted_date from wp_posts group by posted_date having total_posts > 0
However, it returns a chart with a flat line. The WordPress installation has about 11,000 posts over a 10 year period, and the line should not be flat since some days there are zero posts and some days there are 20 posts. What am I doing wrong in the sql query?
https://www.ads-software.com/plugins/wp-business-intelligence-lite/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘SQL query appears incorrect?’ is closed to new replies.