You need to sign in to do that
Don't have an account?
jOseMC
how to mention more than one field after a where and informally that they are different from null?
how to mention more than one field after a where and informally that they are different from null? in my developer console I wrote as follows
ServiceContract scQuery = [SELECT BankId__c, Agencia__c, Conta__c, CNPJ__c, Digito_Conta__c,Tipo_de_Conta_Bancaria__c, Conta_Poupanca__c from ServiceContract where BankId__c != null, Agencia__c != null, Conta__c != null,CNPJ__c != null, Digito_Conta__c != null,Tipo_de_Conta_Bancaria__c != null ]; System.assert(scQuery != null , 'Bank account should be equals from Service Contract');but the following errors are showing
try with below code.
If you want to check all the fields conditions != Null then use AND If you want to check any one of the field conditions != Null then use OR
If this helps, Please mark it as best answer.
Thanks!!