Created
August 26, 2014 00:08
-
-
Save davispuh/b104492cfc0f2942e232 to your computer and use it in GitHub Desktop.
Most active channels
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 count(messageid) as count, buffername as channel | |
FROM backlog | |
LEFT JOIN buffer ON buffer.bufferid = backlog.bufferid | |
WHERE buffername != '' | |
GROUP BY buffername ORDER BY count DESC | |
LIMIT 30; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment