01Chapter 1: What aggregate queries do and when to use themThis chapter assumes you know basic SOQL, including SELECT, FROM, and WHERE. You should also know common Salesforce objects such as Account, Lead, and Opportunity, plus basic Apex loops and type casting.1 min read
02Chapter 2: Naming aggregate results with aliasesAssume you know basic SOQL, Salesforce objects and fields, and basic Apex loops and casting. Aggregate queries return summary rows instead of individual records. An alias is a name you assign to a calculated value, such as a count or sum.1 min read
03Chapter 3: Ordering and limiting grouped resultsAssume you know basic SOQL, Salesforce objects, and simple Apex loops. Aggregate queries return one row per group, so ordering and limits apply to groups rather than individual records.1 min read