I am having trouble with the following statement:
select top 100 [decision_score],
case when [decision_score] between 620 and 639 then '620-639'
else [decision_score]
end as ScoreBand
from tblCMSImain
where [initiation date] > '01/01/04'
Getting error:
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '620-639' to a column of data type int.
Howerver when I cast the string to a varchar I still get the same error
select top 100 [decision_score],
case when [decision_score] between 620 and 639 then '620-639'
else [decision_score]
end as ScoreBand
from tblCMSImain
where [initiation date] > '01/01/04'
Getting error:
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '620-639' to a column of data type int.
Howerver when I cast the string to a varchar I still get the same error