I'm trying to a use a CASE expression in the WHERE clause in SQL. I don't know how I to put it in.
For example:
select id , name = case when first_name = 'a' then 'NA' else null end
from MyTable
where case when first_name = 'a' then 'NA' else null end is null
I want to show results when they are null. How can I do that please?