I have a table with 3 columns and sample data like this:

All columns are of datatype int.
I have this query :
select
foodid, dayid
from
Schedule
I want replace dayid with a string if dayid=null .
For this I tried this query :
select
foodid,
Dayid + ISNULL(dayid,'not day')
from Schedule
but I am getting this ERROR :
Conversion failed when converting the varchar value 'not day' to data type int.
How can do this ?
I want replace dayid with a string id dayid=nullit will be null so what different you want?select foodid,ISNULL(dayid,'not day') from ScheduleIn your query you are trying to add (dayid + ...).