I have two soql on same object but where condition is vary by single condition mentioned below, I need to combine both and make it as single soql, can someone help me how to do with below soql after where conditions?
1st one have contact.Contact_ID__c != null and 2nd one have Roles != null.I need to combine both in single soql
1st Query:
SELECT
Id,
Roles,
contact.contact_Id__c,
Account.Id,
account.customer_Id__c,
Relationship_End_Date__c,
IsActive
FROM
AccountContactRecord
WHERE
account.customer_Id__c != null AND contact.Contact_ID__c != null AND Id in: conList
2nd Query:
SELECT
Id,
Roles,
contact.Contact_ID__c,
Account.Id,
account.customer_Id__c,
Ownership__c
FROM
AccountContactRecord
WHERE
account.customer_Id__c != null AND Roles != null AND Id in: conList