I'm trying to do an execute anonymous query for Contracts with a null/blank address. I get "Address fields can only be filtered using Distance expressions" in the query:
List<Contract> noAddress = [SELECT ID FROM Contract WHERE BillingAddress =: null];
System.Debug(noAddress.size());
I thought to try BillingAddress.city instead -- since I know you don't update the Address directly, but as such... and I got:
Line: 7, Column: 28 Didn't understand relationship 'BillingAddress' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
How can I make this query?