Newer Version Available

This content describes an older version of this product. View Latest

null in SOQL Queries

Use the value null to represent null values in SOQL queries.

For example, the following statement would return the account IDs of all events with a non-null activity date:
1SELECT AccountId
2FROM Event
3WHERE ActivityDate != null