If you have a case expression like shown below, that would be no different from having no case expression at all:CASE WHEN i.Insurance = 'OtherInsurance' THEN convert(nvarchar(4), NULL) end Insurance
That is because, you are asking SQL Server to return you NULL if the Insurance is "OtherInsurance". But you are not telling it what it should do if the insurance is indeed not "OtherInsurance". And, so it would return a null there as well.Perhaps this is what you want?-----------------------CASE WHEN i.Insurance = 'OtherInsurance' THEN NULL ELSE i.InsuranceEND Insurance
If that is so, you might consider either of the following as well, which should be functionally the same:CASE WHEN i.Insurance <> 'OtherInsurance' THEN i.InsuranceEND Insurance-----------------------NULLIF(i.Insurance,'OtherInsurance') Insurance
________________________________________-- Yes, I am indeed a fictional character.