Created
July 9, 2013 08:35
-
-
Save suminb/5955682 to your computer and use it in GitHub Desktop.
Better Translator translation demand histogram
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 CASE | |
WHEN text_length < 10 THEN '< 10' | |
WHEN text_length BETWEEN 10 AND 100 THEN '< 100' | |
WHEN text_length BETWEEN 100 AND 1000 THEN '< 1000' | |
WHEN text_length BETWEEN 1000 AND 10000 THEN '< 10000' | |
ELSE '> 10000' END AS length_bucket, | |
COUNT(*) AS qty | |
FROM (SELECT *, length(original_text) AS text_length FROM translation) AS t GROUP BY length_bucket; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment