Created
July 10, 2018 06:32
-
-
Save marcoah/cbcde88095cbe244b6390511d24624af to your computer and use it in GitHub Desktop.
Para construir histogramas (seleccionar datos por rango)
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 prof < 10 THEN 'Menor a 10' | |
WHEN prof between 10 AND 20 THEN 'Entre 10 y 20' | |
ELSE 'Mayor a 20' END as Rango, Count(*) as Cantidad | |
FROM Perforaciones group by Rango |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment