I have a field that is varchar and contains numbers and dates as strings. I want to update all numbers in this field that is greater than 720. At first I tried to make a choice, but I get this error:
Conversion failed when converting the nvarchar value '16:00' to data type int.
This is my request:
select id, case(isnumeric([other08])) when 1 then [other08] else 0 end
from CER where sourcecode like 'ANE%'
It does not work when I uncomment the last part.
I am trying to get all numbers greater than 720, but I cannot do comaprison. It also fails when casting and converting.
Thank you all for your help.
source
share