How to Query Parent and Child Relationships in SOQL

Easily query an object’s parent or child data

Jonathan Hsu
Jun 18 · 3 min read

SOQL — Salesforce Object Query Language — is a mechanism for retrieving object data that resembles SQL. While SQL includes operations such as INSERT, ALTER, and DELETE, SOQL is confined to retrieving data…effectively SELECT statements only.