Ver originalSELECT campo1, SUM(if(campo2 condicion,1,0)),SUM(if(campo3 condicion,1,0)FROM tuTablaGROUP BY campo1;