Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Date values that are NULL
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01118409
Message ID:
01118428
Views:
24
This message has been marked as the solution to the initial question of the thread.
Tom,

The query should be as follows:
SELECT * FROM MyTable WHERE MyDate IS NULL
Null is a special value that isn't equal to anything. Values either are or are not null (IS NULL or IS NOT NULL).

HTH,
Chad


>I have date fields that have null values. I wish to return a data set of records of this type.
>
>
>SELECT * FROM MyTable WHERE MyDate = NULL
>
>
>This does not error out but it returns no values. Any suggestions?
>
>Thank you
>
>Tom
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform