Ver originalSELECT SUM(cantidad * importe) total, id_compra FROM TaConceptos WHERE id_compra = 40GROUP BY id_compra