Example: GROUP BY in SOQL

Problem: The VP of Sales would like to know how many Opportunities have the Lead Source of ‘Word of Mouth’. Additionally, she would like the number broken down by the Stage. Solution: Use the sample syntax below to write a SOQL query using GROUP BY.

 

Continue Reading