{"id":1032,"date":"2010-09-11T00:49:24","date_gmt":"2010-09-10T19:19:24","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=1032"},"modified":"2010-09-11T00:49:24","modified_gmt":"2010-09-10T19:19:24","slug":"difference-in-master-detail-relationship-and-look-up-relationship-salesforce-interview-question","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/difference-in-master-detail-relationship-and-look-up-relationship-salesforce-interview-question\/","title":{"rendered":"Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question"},"content":{"rendered":"<p>One important question may asked in Salesforce interview is that <strong>what is difference in Master &#8211; Detail Relationship and Lookup relationship Fields.<\/strong><\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Master-detail-and-look-up-relationship-Salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1035\" title=\"Master detail and look up relationship Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Master-detail-and-look-up-relationship-Salesforce.jpg?resize=401%2C121&#038;ssl=1\" alt=\"Master detail and look up relationship Salesforce\" width=\"401\" height=\"121\" \/><\/a><!--more--><\/strong><\/p>\n<p><strong>Master &#8211; Detail Relationship :<\/strong><\/p>\n<ol>\n<li>We cannot create master &#8211; detail relationship type fields directly <strong>if records already exists. <\/strong>Instead we have to first create Look up fields then fill all the records with that lookup filed. After that we can convert the lookup fields to master &#8211; detail relationship.<\/li>\n<li>If we delete master records then detail (Child) records are deleted.<\/li>\n<li>It creates the parent(master) child(Detail) relationship between objects.<\/li>\n<\/ol>\n<p><strong>Look up relationship :<\/strong><\/p>\n<ol>\n<li>Look up relationship creates relations between <strong>two objects.<\/strong><\/li>\n<li>If we delete any object then other object is not deleted.<\/li>\n<\/ol>\n<p><strong>NOTE : <\/strong>The field conversion can only done between master detail relationship and look up relationship, both controls type can interchanged by them only.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[17],"tags":[331],"class_list":["post-1032","post","type-post","status-publish","format-standard","hentry","category-tips","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2681,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-5\/","url_meta":{"origin":1032,"position":0},"title":"Salesforce Interview Questions &#8211; Part 5","author":"Jitendra","date":"January 24, 2012","format":false,"excerpt":"Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2473,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce\/","url_meta":{"origin":1032,"position":1},"title":"Deep  dive into Junction object &#8211; Create many to many relationship in Salesforce","author":"Jitendra","date":"October 20, 2011","format":false,"excerpt":"Article to show step by step process of creating junction object for Many to Many relationship in salesforce and impact of deleting one master record on others","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Creating Custom object in salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/10\/Creating-Custom-object-in-salesforce.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3218,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-question-part-15\/","url_meta":{"origin":1032,"position":2},"title":"Salesforce Interview Question \u2013 Part 15","author":"Jitendra","date":"May 24, 2013","format":false,"excerpt":"141 : User Wants to set the starting day in Calendar as \"Monday\" instead of \"Sunday\". How to get it done? Ans : Change the user locale to \"English ( United Kingdom ) \" in Personal information or User record. 142 : Why CSS is not working in PDF created\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1210,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/roll-up-summary-fields-in-salesforce\/","url_meta":{"origin":1032,"position":3},"title":"Roll up Summary fields in Salesforce","author":"Jitendra","date":"October 11, 2010","format":false,"excerpt":"What is Roll up summary field in salesforce, what are the types of roll up summary field and how does it works","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Rollup Summary field","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-Rollup-Summary.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1038,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-2\/","url_meta":{"origin":1032,"position":4},"title":"Salesforce Interview Questions \u2013 Part 2","author":"Jitendra","date":"September 11, 2010","format":false,"excerpt":"Interview questions of salesforce.com, interview questions of visualforce.com and APEX","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Account Child relationship in salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Child-relationship-in-salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2825,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-7\/","url_meta":{"origin":1032,"position":5},"title":"Salesforce Interview Questions &#8211; Part 7","author":"Jitendra","date":"April 23, 2012","format":false,"excerpt":"Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=1032"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1032\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=1032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=1032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=1032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}