Ver originalSELECT codigo, SUM(importanual) AS sumaTotal,SUM(CASE WHEN Fecha > '2015-04-29' THEN importanual ELSE 0 END) AS SumaTotal2FROM importespGROUP BY codigo