Below is my SQL with a case statement.
select
a.AssociationClubNumber,
case a.AssociationClubNumber
when NULL then 'NA'
when '' then 'NA'
else a.AssociationClubNumber
end as 'AssociationClubNumber'
from
[dbo].[Customer] a
If a.AssociationClubNumber
is NULL
or ""
, then the CASE
should return the string "NA".
I tried few different combinations but somehow it's not executing.