Lesson 8 of 18 · 5–7 minutes
Lookup vs Master-Detail
Once entities are clear, decide how tightly their records should depend on each other. Junction objects build on this decision.
Learning sequence · data model first, security layers next
- What CRM and Salesforce Do
- The Salesforce Ecosystem and Major Clouds
- Org, App, Object, Field, and Record
- Standard and Custom Objects
- Common Standard Objects
- Field Types and Data Quality
- Objects, Fields & Records
- Lookup vs Master-Detail
- Many-to-Many Relationships and Junction Objects
- Profiles, Permission Sets & Object Access
- Field-Level Security
- OWD and Least-Privilege Record Access
- Opening Access: Role Hierarchy, Sharing Rules, Public Groups & Apex Sharing
- Apex First Steps
- Variables and Collections
Your focus
Start Your Salesforce Career
FULL · Learn • Apply
- Compare ownership, deletion and roll-ups; choose for a simple scenario.
Prepare for Your Next Developer Role
REVIEW · Review • Apply • Practice
- Defend the onboarding choice and explain query, reporting and automation implications.
Prepare for Senior / Lead Roles
CHECKPOINT · Checkpoint • Design • Troubleshoot
- Review sharing, retention, migration order and high-volume parent contention risks.
Learning objective
Choose a relationship using ownership, deletion, sharing and aggregation requirements.
Before you start
Objects, fields and records; distinguish an identifier from a display name.
Real-world scenario
An onboarding application has checklist items that should exist only with the application: master-detail may fit. A compliance review must survive closure or removal of its related application: consider a lookup with deletion restrictions and an explicit retention policy instead.
The concept
Lookup links records while generally preserving the child’s independent ownership and sharing. Requiredness and parent-delete behavior depend on the field and object settings. Master-detail requires a master, removes independent detail ownership, and ties record access to the parent. Deleting the master deletes its details. Native roll-up summaries on the master can aggregate details. Standard relationships have special behavior: do not use Account–Contact as a universal custom-object template.
Agree on retention and access before choosing convenience. Test deletion, reparenting and reporting in a sandbox. During migration, load required parents before their children. Relationship queries navigate the model; they do not reveal the configured relationship type.
These are custom-object design choices; inspect standard-object exceptions.
1.Lookup
Independent child lifecycle; configure requiredness and deletion behavior.
2.Master-detail
Required parent; inherited ownership/access, cascade deletion and native roll-ups.
Practice next
Apply the child-to-parent query example; this checks navigation, not the full relationship design decision.
Debug the Contact-Account Relationship QueryReading these lessons does not yet save completion. Challenge results continue to provide assessment evidence.