Salesforce Platform Developer I (legacy) — Question 13

Which SOQL query successfully returns the Accounts grouped by name?

Answer options

Correct answer: B

Explanation

Option B is correct because it selects the Name field and groups the results by Name, which is the requirement. Options A, C, and D include additional fields that are not necessary for the grouping, which makes them less appropriate for simply returning Accounts grouped by name.