SyntaxFix
Write A Post
Hire A Developer
Questions
Does this do what you want?
SELECT * FROM UserProfile WHERE PropertydefinitionID in (40, 53) AND ( PropertyValue is NULL or PropertyValue = '' );