I am using always encrypted and couldn't use IsNull or LEN function. I want to use case and IS NULL or IS NOT NULL to achieve that.
Can someone let me know how to re-write the below logic using CASE and IS NULL/ IS NOT NULL?
Len(IsNull(c.email1, IsNull(e.email,ORG_Email))) <> 0
Update 2 :
case when email_indicator != 'N' and Len(IsNull(c.email1, IsNull(e.email,ORG_Email))) <> 0
Then 'E' else 'N' End
See Question&Answers more detail:os