-
-
Save parzibyte/8ad0295f64e35bb65061f0c0e56d6ece to your computer and use it in GitHub Desktop.
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 alguna_columna, otra_columna, | |
sum(case when columna_importante = 'valor' then 1 else 0 end) as conteo_valor, | |
sum(case when columna_importante = 'otro_valor' then 1 else 0 end) as conteo_otro_valor | |
from tabla | |
group by alguna_columna; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment