function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pooja Arya 9Pooja Arya 9 

A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?

A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?
1. Create a Lookup relationship to indicate that a person has an employer
2. create Master-detail relationship to indicate that a person has an employer
Julio Alberto Asenjo GarcíaJulio Alberto Asenjo García
You should create a look up.
In a master detail all the persons should have an employer.
Rajesh KanikeRajesh Kanike
why not Option 1? if its Option 2 which means, Employer is deleted then Person also gets deleted or vice versa?. Please help me understand why its not Option 1
Julio Asenjo 16Julio Asenjo 16

Hi Rajesh! My option is the first one.

If the relationship between the employer and the person may or may not exist, a model must be defined that allows the objects to be related but they exist separately