I am trying to access a field from a table and give different output based on the field content.
If the field has 0 I want to fetch No else if 1 or NULL I want to fetch yes.
It is working well for 0 or 1 but not for NULL.
Select distinct(convert(varchar(255),( CASE Field1
WHEN 0
THEN 'No'
WHEN 1
THEN 'Yes'
WHEN NULL
THEN 'Yes'
END ))) AS Field1 FROM Table1
or this: