You need to sign in to do that
Don't have an account?
BeautifulDrifter
Help with an Aggragate using SOQL Relation Value Comparison
AggregateResult[] groupedResults
= [SELECT Detail_Question__r.PSQ_Applications__c, count(Id)
FROM PSQ_Detail__c
WHERE Detail_Question__r.App_dependency__c = Answer__c
AND PSQ_Header__c = :stdCtrl.getId()
GROUP BY Detail_Question__r.PSQ_Applications__c];
I am getting an error on the where clause: expecting a colon, found 'Answer__c'
Any help would be appreciated. Thanks in advance!
= [SELECT Detail_Question__r.PSQ_Applications__c, count(Id)
FROM PSQ_Detail__c
WHERE Detail_Question__r.App_dependency__c = Answer__c
AND PSQ_Header__c = :stdCtrl.getId()
GROUP BY Detail_Question__r.PSQ_Applications__c];
I am getting an error on the where clause: expecting a colon, found 'Answer__c'
Any help would be appreciated. Thanks in advance!
All Answers