Ver originalSELECT Tabla0.GRUPO, Sum(If(Tabla1.GRUPO Is Null,0,1)) AS TotalFROM Tabla0 LEFT JOIN Tabla1 ON Tabla0.GRUPO = Tabla1.GRUPOGROUP BY Tabla0.GRUPO;