Ver originalSELECT CASE WHEN servicio = 'BAM' THEN SUM(valor+sobrecargo) ELSE 0 END AS BAM,CASE WHEN servicio = 'MMS' THEN SUM(valor+sobrecargo) ELSE 0 END AS MMSFROM tabla