How do i remove .00, .01 from the string while converting that string to int
i tried to do this
Select REPLACE(CONVERT(varchar(15), [Cases], 1), '.00', '') from table
UPDATE table
SET [CASES_d] = CAST(REPLACE(CONVERT(varchar(15), [Cases], 1), '.00', '') AS INT)
I get the error
Conversion failed when converting the varchar value '1.10' to data type int.
can somebody help
Thanks