SOQL Query Library for Salesforce Admins

Every page here is one job an admin actually has: count the records before a mass update, find the blanks, catch the duplicates, see what changed today. The query is at the top, the explanation is underneath, and the pitfalls are the ones that cost real time.

Queries use standard fields only, so they run as-is in any org. Swap the object's API name to adapt one to a custom object.

70 pages

Counting and aggregates

Date and time filters

Data quality

Reporting

Ownership and assignment

Relationship queries

Other resources