Type of relationships in Salesforce
You can develop relationships between objects in Salesforce. You can also associate one object with another. For example, if you have an object named Event
(to store information about an event) and you want to associate it with the Event Registration
object (to store information about participants for a particular event) so that you can associate the event registration records with the respective event records, as you want to categorize each registration with the respective event. Salesforce provides the following five types of relationships that can be established between the objects:
A master-detail relationship
A lookup relationship
A many-to-many relationship (junction object)
Self-relationship
A hierarchical relationship
A master-detail relationship
A master-detail relationship is a tightly-coupled relationship between Salesforce objects; this means that if a master record is deleted, then the child records associated with it are also deleted. In this type...