This is what i am trying
SELECT result =
CASE IsNumeric(substring(abbr,1,1))
WHEN 1 THEN Convert(Decimal(9,1), abbr)
ELSE Convert(varchar(20), abbr)
END
FROM icd9
It converts the numbers into decimal but does not display alpha numeric and displays the following error in the end:
Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
Thanks
Lakshmi.