T-SQL 101: 28 Working with NULL values (the lack of data) in SQL Server T-SQL queries
Look at the following query:

I’ve asked SQL Server to return orders where there are order comments. I did that by saying:
OrderComments IS NOT NULL
If I had said IS NULL, I would have returned all the orders with no comments. The interesting concept though, is NULL.
What is NULL?
The first thing to understand is that NULL isn’t a value. That’s why we can’t say:
WHERE OrderComments = NULL or WHERE OrderComments <> NULL
2019-07-29