You need to sign in to do that
Don't have an account?
Timothy Smith
SOQL with two WHERE clauses help
Help with syntax for 2 WHERE Clauses please.
List<AggregateResult> AggregateResultList = [SELECT AccountId, Account.Name name, COUNT(Id) co, Milestone1_Project__c.id, Milestone1_Project__c.Implementation_status__c, Milestone1_Project__c.Client_Advisor_Email__c FROM Case WHERE CreatedDate = LAST_N_DAYS:5 AND Id IN :Trigger.New GROUP BY AccountId, Account.Name HAVING COUNT(Id) >= 8 ];
Danish Hoda
Replace Milestone1_Project__c.Client_Advisor_Email__c with Milestone1_Project__r.Client_Advisor_Email__c
Sanvee Mehara
do you still have issue?
Timothy Smith
Thank you for responding. Yes, even after changing to Milestone1_Project__r.Client_Advisor_Email__c, I am having same issue. Error message below.