sql - Checking for numbers in char field -
i working on database bright spark decided idea store numbers , letters (for no reason) in char field.
now need select number below value error due existence of letters in of records.
i have tried following
select column1 table1 isnumeric(column1)=1 , column1<=16
however following error
conversion failed when converting varchar value '5.00 ' data type int.
now looks number me why can't convert it?
cast column if numeric
select column1 table1 isnumeric(column1)=1 , cast(column1 decimal(18,2)) <= 16.0
Comments
Post a Comment