Ver originalSELECT IF (numero >=0, 'positivo','negativo')dato, SUM(abs(numero))cantidad FROM tu_tabla GROUP BY dato