I am trying to upload some work from a CF server to SQL Server (2008).
I run a query, and the return statusID value matches one of four colors (green, yellow, orange, and red).
select id, statusID
from table
If this is the ideal situation to use the case statement, is that right?
select id,
case
when statusid in (1,20,24)
then 'red'
END as xxxx) as yyyy, *
from TABLE
And if that's right, what happens in xxxx and yyyy above?
source
share