Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to search for Null values

Status
Not open for further replies.

cocopud

Technical User
Joined
Jan 8, 2002
Messages
139
Location
US
I have a table with some fields of datetime type which contains NULL values. Is there anyway to search for just the records that contain those null values? Everything I try returns no records, but I know that there are records there.
 
SELECT * FROM TableName WHERE FieldName IS NULL
 
Thank you. That works, I was trying everything with = and not IS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top