Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I think the following query might do what you need:
SELECT AVG(SAT_Score__c) mean
FROM Case
WHERE SAT_Score__c != null
AND OwnerId = '005xxxxxxxxxxxx'
GROUP BY OwnerId
ORDER BY MIN(ClosedDate) DESC
Limit 20
I think the following query might do what you need:
SELECT AVG(SAT_Score__c) mean
FROM Case
WHERE SAT_Score__c != null
AND OwnerId = '005xxxxxxxxxxxx'
GROUP BY OwnerId
ORDER BY MIN(ClosedDate)
Limit 20
I think the following query might do what you need:
SELECT AVG(SAT_Score__c) mean
FROM Case
WHERE SAT_Score__c != null
AND OwnerId = '005xxxxxxxxxxxx'
GROUP BY OwnerId
ORDER BY MIN(ClosedDate) DESC
Limit 20