Created
November 18, 2014 10:33
-
-
Save robertberry-zz/ac46d5a70db98c161dc6 to your computer and use it in GitHub Desktop.
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 MAX(c.section_id) section_id, MAX(t.tag_web_title) contributor_name, COUNT(DISTINCT c.id) articles_published | |
FROM content_dim c RIGHT JOIN content_tag_lookup t ON c.content_key = t.content_key | |
WHERE t.tag_type = 'contributor' | |
GROUP BY tag_id, section_id | |
ORDER BY section_id ASC, articles_published DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment