Ver originalSELECT codgraella, expedient, sum(import) AS totmedicamentFROM `graellaexpedient`GROUP BY codexpedientHAVING sum(import) < 1;