update material set quantity=a.qty from material inner join orde a on material.idno=a.goods.id