Avatar of Dovberman
Dovberman
Flag for United States of America

asked on 

I need to multiply a smallmoney value and store the result rounded to 2 decimal places.

I need to multiply a smallmoney value and store the result rounded to 2 decimal places.

Example:
Column Data type is smallmoney

Initial value = 34.68

UPDATE StockHist
SET ClosePrice = .33333 * ClosePrice

Returns 11.5585

Need to return 11.56 (store rounded to only 2 decimal places).
SQL

Avatar of undefined
Last Comment
Dovberman

8/22/2022 - Mon