Open topic with navigation
Use the value null to represent null values in SOQL queries.
SELECT AccountId FROM Event WHERE ActivityDate !=null