BeginnerLesson 5 of 37
Relationships
How records link to each other.
- Lookup: a loose link. The child can exist without the parent; deleting the parent does not delete children by default.
- Master-Detail: a tight link. The child is required to have a parent, inherits its sharing and security, is deleted with it, and enables roll-up summary fields on the parent.
- Many-to-many: build a junction object with two Master-Detail fields.
- Hierarchical lookup: User to User (for example, a manager).
Rule of thumb: Master-Detail when the child cannot meaningfully exist alone; Lookup otherwise.