テーブルからフィールドにアクセスし、フィールドの内容に基づいて異なる出力を提供しようとしています。
If the field has 0I want to fetch Noelse if 1or NULLI want to fetch yes. またはでは
うまく機能しますが、 では機能しません。01NULL
Select distinct(convert(varchar(255),( CASE Field1
WHEN 0
THEN 'No'
WHEN 1
THEN 'Yes'
WHEN NULL
THEN 'Yes'
END ))) AS Field1 FROM Table1