The guy who designed our Microsoft SQL Server Databases, allowed datetime fields to be nulls. I ran across a record that had a null in it, and tried to create a query to determine how many records are like this.
SELECT *
FROM .[EP3_14]
WHERE ID_1015=NULL
This returns no rows at all.
I modified the code to see if I could return any rows on that datetime field, and tried this:
SELECT *
FROM .[EP3_14]
WHERE ID_1015<'2004-01-01 00:00:00.000'
This returns all records with a datetime stamp, that is below that datetime stamp. The NULL record is not displayed.
What do I need to do in order to return rows with only NULL value?
Thanks in advance.
SELECT *
FROM .[EP3_14]
WHERE ID_1015=NULL
This returns no rows at all.
I modified the code to see if I could return any rows on that datetime field, and tried this:
SELECT *
FROM .[EP3_14]
WHERE ID_1015<'2004-01-01 00:00:00.000'
This returns all records with a datetime stamp, that is below that datetime stamp. The NULL record is not displayed.
What do I need to do in order to return rows with only NULL value?
Thanks in advance.