AggregateResult[] groupedResultCall = [ SELECT Account_vod__c, count(Id)
FROM Call2_vod__c
WHERE Call_Date_vod__c >= :QuarterStartDate
AND Call_Date_vod__c <= :QuarterEndDate
AND Account_Type__c =: accStaticRec.Account_Type__c
AND Territory_vod__c =: accStaticRec.Territory__c
AND Status_vod__c = 'Submitted_vod'
AND (Call_Type_vod__c != 'Call Only'
OR Call_Type_vod__c != 'Event Only'
OR Call_Type_vod__c != 'Event Detail')
AND Account_vod__c IN :accIdSet
AND Activity_Type__c <> 'Staff'
GROUP BY Account_vod__c ];
AggregateResult[] groupedResultCall = [SELECT Account_vod__c, count(Id)
FROM Call2_vod__c
WHERE Call_Date_vod__c >= :QuarterStartDate
AND Call_Date_vod__c <= :QuarterEndDate
AND Account_Type__c =:accStaticRec.Account_Type__c
AND Territory_vod__c = :accStaticRec.Territory__c
AND Status_vod__c = 'Submitted_vod'
AND (Call_Type_vod__c != 'Call Only'
AND Call_Type_vod__c != 'Event Only'
AND Call_Type_vod__c != 'Event Detail')
AND Account_vod__c IN :accIdSet
AND Activity_Type__c <> 'Staff'
GROUP BY Account_vod__c ];
哪个查询是正确的。请纠正我