Ver originalcreate procedure obtiene_sumaas select id_cotizacion,id_proveedores,fecha, total from cotizacion as t1left join CantxArt as t2 on (t1.id_cotizacion=t2.id_cotizacion) exec obtiene_suma