Ver originalSELECT CASE WHEN MONTH(ene) ant tipomov='E' THEN SUM(1) END AS enero,CASE WHEN MONTH(feb) ant tipomov='E' THEN SUM(1) END AS febFROM tabla