Ver originalSELECT empleado, MAX(SUM(ganancias)), MIN(SUM(ganancias)) FROM tabla WHERE mes = 'abril' AND estado = 1 GROUP BY empleado.