SyntaxFix
Write A Post
Hire A Developer
Questions
Here's a slightly different way:
SELECT * FROM UserProfile WHERE PropertydefinitionID in (40, 53) AND (LEN(ISNULL(PropertyValue,'')) = 0)