Created
September 23, 2015 22:51
-
-
Save nsanden/f932dbe75194d923ecb3 to your computer and use it in GitHub Desktop.
whatever.sql
This file contains hidden or 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 `keyword`.`keyword`, COUNT(DISTINCT campaign_keyword.campaign_id) AS metric_value | |
FROM `keyword` | |
LEFT JOIN `campaign_keyword` ON campaign_keyword.keyword_id = keyword.id | |
GROUP BY `keyword`.`id` | |
ORDER BY `metric_value` | |
DESC LIMIT 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment