💬 In plain words: A junction object is a small "middle table" with two master-details, used when both sides can have many of each other (Students ↔ Courses → Enrollment). It's how you build many-to-many relationships on the platform. 📌 Example: Students and Courses: one student takes many courses, one course has many students. Create Enrollment with two Master-Details — the junction. Ravi's enrollment in 'Apex 101' is one Enrollment record carrying grade and enrollment date. 🧠 The middle table: Many-to-many = two master-details meeting in a small middle object. Students and Courses meet in Enrollment; Skyline's Parcels and Routes meet in a Stop. 🔗 Connects to: The master-detail choice both legs depend on · One busy parent record creates data skew at scale Concept A junction object models many-to-many. It is a custom object with two Master-Detail relationships. The first Mas...
Salesforce Basics