update Relations set "Function"='Quantity' where tablename='v_UsedServicesByContract' and ColName='Quantity'; GO update Relations set "Function"='PrWithoutDisc' where tablename='v_UsedServicesByContract' and ColName='PrWithoutDisc'; GO update Relations set "Function"='Quantity' where tablename='v_NonPayedServicesByContract' and ColName='Quantity'; GO update Relations set "Function"='PrWithoutDisc' where tablename='v_NonPayedServicesByContract' and ColName='PrWithoutDisc';