/ Published in: SQL
Expand |
Embed | Plain Text
SELECT `post_author` AS 'id', display_name AS 'name', `post_date` AS 'date', `post_title`, `guid` FROM `wp_posts` p LEFT JOIN wp_users u ON u.ID = p.post_author WHERE `display_name` IN('Nick Lett','Evan Silver','Ramon Diaz','Alex Milner','Sheraz Amin') AND `post_status` = 'publish' AND post_date_gmt > '2010-11-1' AND post_date_gmt < '2010-11-30' # Get Count SELECT `post_author` AS 'id', display_name AS 'name', count( * ) AS 'count' FROM `wp_posts` p LEFT JOIN wp_users u ON u.ID = p.post_author WHERE `display_name` IN ( 'Nick Lett','Evan Silver','Ramon Diaz','Alex Milner','Sheraz Amin','Davis Huynh' ) AND `post_status` = 'publish' AND post_date_gmt > '2010-11-1' AND post_date_gmt < '2010-11-30' GROUP BY `post_author`
You need to login to post a comment.
