the field value equal to zero OR it is NULL ?
+7
A:
SELECT * FROM [tablename] WHERE [fieldname] = 0 OR [fieldname] IS NULL
jweber
2010-06-27 18:54:57
+1
A:
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
VoodooChild
2010-06-27 18:58:37