Skip to content

Instantly share code, notes, and snippets.

@nashibao
Created November 30, 2016 14:17
Show Gist options
  • Save nashibao/041e34f7d56f3e266dbdeac4c8ec0ec0 to your computer and use it in GitHub Desktop.
Save nashibao/041e34f7d56f3e266dbdeac4c8ec0ec0 to your computer and use it in GitHub Desktop.
blog2.sql
SELECT corpus, word, SUM(word_count) AS total FROM tbl
WHERE ...
Group By corpus
ORDER BY total
DESC LIMIT 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment