The IS NULL command is employed to check for empty values (NULL values). The following SQL enumerates all customers with a NULL value in the “Address” field:
SELECT CustomerName, ContactName, Address FROM Customers WHERE Address IS NULL; |
Please note that a NULL value differs from a zero value or a field containing spaces. A NULL value indicates that the field was left blank during record creation. Tip: It’s recommended to use IS NULL to search for NULL values. |