[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-656001-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-656001-en":130,"doc-similar-656001":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","database-technology-topic-5-mapping-of-eer-diagrams-step-by-step-er-to-relational-mapping","Database Technology - Topic 5 - Mapping of EER Diagrams - Step-by-Step ER-to-Relational Mapping","","Database Technology Topic 5 presents a step-by-step procedure for mapping EER diagrams into relational database schemas. The material defines how to translate regular and weak entity types into entity relations, how to flatten composite attributes, and how to select primary keys and foreign keys during translation. It then covers binary 1:1 and 1:N relationships using multiple approaches (foreign-key, merged, and cross-reference/relationship relations) and explains handling of primary/unique constraints and relationship attributes.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/database-technology-topic-5-mapping-of-eer-diagrams-step-by-step-er-to-relational-mapping/656001/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/database-technology-topic-5-mapping-of-eer-diagrams-step-by-step-er-to-relational-mapping/656001.png","ImageObject",300,407,{"name":42,"@type":43},"Đào","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",8,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How are regular entity types mapped into relation schemas?","Question",{"text":63,"@type":64},"For each regular entity type, create a relation schema that includes all single-valued attributes. Choose primary keys appropriately, declare other keys as unique when needed, and represent each tuple as an entity instance.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the foreign key approach for binary 1:1 relationships?",{"text":68,"@type":64},"Add the primary key of one participating entity relation as a foreign key attribute in the other relation. If only one participation is total, choose that side to represent the relationship, and declare the foreign key attribute as unique.",{"name":70,"@type":61,"acceptedAnswer":71},"How are weak entity types mapped, including identifying relationships?",{"text":72,"@type":64},"Create a relation schema for each weak entity type that includes single-valued attributes from both the weak entity and its identifying relationship. Flatten composite attributes, include the identifying entity’s primary key as a foreign key, then select the combined primary key for the resulting relation.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},656001,1792965515,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":33,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":123,"preview_page_count":33,"preview_urls":143},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Database Technology  \nTopic 5:  \nMapping of EER Diagramsolaf.hartig@liu.se  \nDueaxu Techndeg  \nUNIVERSITY  \nTpie5:Ma pingefRDagramste lfons  \nAlgorithm for Mappingfrom the ER Modelli.U票  \nuu TechndewTqie⁵:Mping efERDfagmmso oafors  \n# Step 1:Map Regular Entity Types\n\nStep 2:Map Weak Entity Types  \nFor each regular entity type,create a relation schema Rthat includes all the single-valued attributes of E  \n·For each weak entity type,create a relation schema R  \n·Include allsingle-valued attributes of the weak entity typeand of the identifying relationship as atributes of R  \n·\"Flatten\"composite attributes (e.g.,Name of Employee)  \n·Example renames some attributes (e.g.,Dname),but not needed  \n·Include primary key atribute ofidentifying entity as foreignkey attribute of R  \n·Pick one of the keys as primary key,declare others to be unique  \n·Primary key of R is primary key of identifying entity togetherwith partial key from R  \n·Resulting relations are called entity relations  \n·Each tuple represents an entity instance  \n·Omit the identifying relationship when subsequently translating(other)relationship types to relation schemas  \nEMPLOYEE  \n\n| Fname    | Minit    | Lname   | Ssn   | Bdate   | Address   | Sex   | Salary   |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n\nDEPARTMENT    \nDname Dnumber  \nDEPENDENT  \n\n| Essn   | Dependent_name   | Sex   | Bdate   | Relationship   |\n| --- | --- | --- | --- | --- |\n\nPROJECT  \n\n| Pname   | Pnumber   | Plocation   |\n| --- | --- | --- |\n\nli.UuKFNG  \nDateanie Tchndegy  \nToic5:Mapeing ofERDiagramso Reltans  \n\n| Step 3:Binary 1:1 Relationship Types  \u003Cbr>·For each binary 1:1 relationship type R,identify relation schemas  \u003Cbr>that correspond to entity types participating in R  \u003Cbr>Apply one of three possible approaches:  \u003Cbr>2.Merged relatonship approach  \u003Cbr>·Possible if both participations are total  \u003Cbr>·Combine the two relation schemas into one,  \u003Cbr>which will also represent R  \u003Cbr>·Make one of the primary keys unique instead  \u003Cbr>3.Cross-reference or relationship relation approach  \u003Cbr>·Create new relation schema for R with two foreign  \u003Cbr>key atributes being copies of both primary keys  \u003Cbr>·Declare one of the attributes as primary key,the  \u003Cbr>other one as unique  \u003Cbr>·Add single-valued attributes of relationship type as attributes of R  \u003Cbr>LNKOPING  \u003Cbr>Dutene Tchndeg  \u003Cbr>li.U  \u003Cbr>UNIVERSITY  \u003Cbr>Tqie5:Mpingel E Dgramste eleions   |\n| --- |\n\n# Step 3:Binary 1:1 Relationship Types\n\n·For each binary 1:1 relationship type R,identify relation schemasthat correspond to entity types participating in RApply one of three possible approaches:  \n## 1.Foreign key approach\n\n·Add primary key of one participating relation as foreignkey attribute of the other,which will also represent R  \n·If only one side is total,choose it to represent R(why?)  \n·Declare foreign key attribute as uniqueDEPARTMENT              DnumberMgr_ssnMgr_start date  \nEMPLOYEE  \n\n| Fname   | Mnit   | Lname   | Ssn   | Bdate   | AddressI   | Sex   |  Salary   | Super_ssn   | Dno   |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\n\"Add single-valued attributes of relationship type as attributes of RLNKOPINGuean TachndegvUNIVERSITYTqie5:Maming efEDagranso Relfians  \n\n| Step 4:Binary 1:N Relationship Types  \u003Cbr>·Foreign key approach  \u003Cbr>·Relationship relation approach  \u003Cbr>·Create new relation schema for relationship type with two  \u003Cbr>foreign key attributes being copies of both primary keys  \u003Cbr>·Declare the foreign key attribute for the relation schema  \u003Cbr>corresponding to the participating entity type on the N-side  \u003Cbr>as primary key  \u003Cbr>■ Include single-valued attributes of relationship type as attributes  \u003Cbr>LNKOPING  \u003Cbr>Dueane Tachndew  \u003Cbr>1.U  \u003Cbr>0  \u003Cbr>UNIVERSTY  \u003Cbr>Tqpie 5:MpingefERDigrams te kelafans   |\n| --- |\n\n# Step 4:Binary 1:N Relationship Types\n\n·Foreign key approach  \n·Identify relation schema Sthat represents participating entity typeat N-side of 1:N relationship type  \n·Include pri","cbCaiiQCkJiMN4CQ","https://ap.wps.com/l/cbCaiiQCkJiMN4CQ","pdf",1856222,"English","# Step 1: Map Regular Entity Types\n# Step 2: Map Weak Entity Types\n# Step 3: Binary 1:1 Relationship Types\n## Foreign key approach\n# Step 4: Binary 1:N Relationship Types\n## Foreign key approach\n## Relationship relation approach\n# Step 5: Binary M:N and Higher Order Relationship Types\n# Step 6: Map Multivalued Attributes","[{\"question\":\"How are regular entity types mapped into relation schemas?\",\"answer\":\"For each regular entity type, create a relation schema that includes all single-valued attributes. Choose primary keys appropriately, declare other keys as unique when needed, and represent each tuple as an entity instance.\"},{\"question\":\"What is the foreign key approach for binary 1:1 relationships?\",\"answer\":\"Add the primary key of one participating entity relation as a foreign key attribute in the other relation. If only one participation is total, choose that side to represent the relationship, and declare the foreign key attribute as unique.\"},{\"question\":\"How are weak entity types mapped, including identifying relationships?\",\"answer\":\"Create a relation schema for each weak entity type that includes single-valued attributes from both the weak entity and its identifying relationship. Flatten composite attributes, include the identifying entity’s primary key as a foreign key, then select the combined primary key for the resulting relation.\"}]","Database Technology - Topic 5 - Mapping of EER Diagrams - Step-by-Step ER-to-Relational Mapping | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e056bd356c82b5a8bd14f53e4705d1e4.webp",983,1390,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/64e67e7b74621988bdcbe36a946bca37.webp",982,1388,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3cd33291e0e4169bb543653a6a9a95b7.webp",981,1387,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f5c64d720a6d3d9f0697d584130516c4.webp",980,1385,{"list":161,"token":11},[162,169,175,181,187,193,199,205,211,217],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":29,"create_tm":168},656122,"Translating Entity-Relationship to Relational Tables - Fall 2026 - David Toman","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=8zqU0Vo5MbuAc%2FhRuJAZtOJli6w%3D","translating-entity-relationship-to-relational-tables-fall-2026-david-toman",11,1792966526,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":97,"category_name":29,"create_tm":174},656021,"DBMS - ER Design Issues","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975297817/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=t%2BjthKGdJWu9LbJhdQL%2B2pnr29w%3D","dbms-er-design-issues",1792965697,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":106,"category_name":29,"create_tm":180},655951,"Entity Relationship Diagram - Database Design and Constraints","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294792/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=x8fL1hreNOI2khWsMOUwmb8YZtc%3D","entity-relationship-diagram-database-design-and-constraints",1792965071,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":115,"category_name":29,"create_tm":186},656097,"Entity Relationship Diagrams in MySQL Workbench - Create and Edit an ERD from Scratch","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300167/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=UP5z8DL3YYrCykvB6Mm2BaN6JTs%3D","entity-relationship-diagrams-in-mysql-workbench-create-and-edit-an-erd-from-scratch",1792966309,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":55,"category_name":29,"create_tm":192},656018,"ER diagram - Database Analysis Life Cycle - Basics - Entity Relationship (ER) modelling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974782439/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=MemZ2RXLpwDDJTE%2FB4T8rsVlQ1E%3D","er-diagram-database-analysis-life-cycle-basics-entity-relationship-er-modelling",1792965691,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":167,"category_name":29,"create_tm":198},656085,"Mapping ER Diagram to a Relational Database","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974784510/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=mwbSCpx%2F8GcVY%2FF7VARfKV%2FLZto%3D","mapping-er-diagram-to-a-relational-database",1792966194,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":115,"category_name":29,"create_tm":204},656146,"DBMS UNIT III - Database Management Systems - Unit 3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975301649/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=PpwQojZRAscFNW6hfklztQGmFSs%3D","dbms-unit-iii-database-management-systems-unit-3",1792966705,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":167,"category_name":29,"create_tm":210},655952,"E R design decisions - Decision guidance for ER modeling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294803/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=Oo%2Fkk7t3cX5Yhb6T57UBTfGZg%2FU%3D","e-r-design-decisions-decision-guidance-for-er-modeling",1792965074,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":97,"category_name":29,"create_tm":216},656084,"CS34800 Information Systems - Entity-Relationship Model - Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974784520/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=anYFtykMMNJL%2FyxrUhhoh%2B1rZwg%3D","cs34800-information-systems-entity-relationship-model-lecture-notes",1792966191,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":55,"category_name":29,"create_tm":222},655978,"Chapter 6 - Database Design Using the E-R Model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296131/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214119&Signature=F1mCzX7%2F0gV881sQfcJV0eIQZ5s%3D","chapter-6-database-design-using-the-e-r-model",1792965277]