I have a SQL select query where I select columns from a table, some of which are in BLOB format. I want to display the BLOB column as either 'Yes' or 'No' based on if the column is null or not (if there is data or not).
I've tried using this case statement, however it always returns 'Yes', no matter if the value is null or not. How can I fix this?
select category,
description,
CASE maintenance
when 1 then 'Yes'
else 'No'
END maintenance,
submittedBy,
CASE image
when NULL then 'No'
else 'Yes'
END image
from Forms