Tuesday, December 13, 2016

Sample GROUP BY Clause in SOQL

Sample SOQL query to fetch case count based on the owner.

SELECT Owner.name, COUNT(CaseNumber)
FROM Case
GROUP BY Owner.name




Thank you...Enjoy!

No comments:

Post a Comment