I am using SQL Server 2014
and I have this simple T-SQL query:
USE MyDatabase
SELECT * FROM [t1]
WHERE DATALENGTH([Email]) > 0 OR [Email] <> ' '
I want to exclude all records where the Email field appears BLANK or NULL.
When running the above query, it is also extracting records with BLANK (appears empty) and NULLS.
What is the issue with my FILTER syntax here?