Ver originalselect marca,articulo,sum(cantidad),stock from producto pinner join moviemientos m on m.codproducto=p.codproductogroup by articulo;