Reputation: 19559
the field value equal to zero OR it is NULL ?
Upvotes: 1
Views: 107
Reputation: 9784
There is handy function called ISNULL which allows you to return a different value if it is. You can use it like:
SELECT ISNULL(fieldName, -999)
FROM _table
Also, for your main question:
SELECT * FROM _table
WHERE field IS NULL OR field = 0
Upvotes: 1
Reputation: 589
SELECT * FROM [tablename] WHERE [fieldname] = 0 OR [fieldname] IS NULL
Upvotes: 7