[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655989-105":59,"doc-detail-655989-en":130,"doc-similar-655989":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","from-er-to-relational-mapping-step-by-step-guide-algorithms-for-er-and-eer","From ER to Relational Mapping - Step-by-Step Guide - Algorithms for ER and EER","","Explains how to convert an Entity-Relationship (ER) conceptual schema into a relational database schema using systematic mapping procedures. Covers algorithms for regular (strong) entity types, weak entity types, and binary relationships of types 1:1, 1:N, and M:N, including how to map multivalued attributes. Also includes the algorithm for EER model specialization/generalization and discusses key and foreign key selection rules during table creation.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/from-er-to-relational-mapping-step-by-step-guide-algorithms-for-er-and-eer/655989/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/from-er-to-relational-mapping-step-by-step-guide-algorithms-for-er-and-eer/655989.png","ImageObject",300,407,{"name":92,"@type":93},"WPS_1786070896","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the overall goal of ER to relational mapping?","Question",{"text":112,"@type":113},"To create a relational schema from an ER schema by converting entities, attributes, and relationships into database tables using defined procedures.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are regular (strong) entity types mapped to tables?",{"text":117,"@type":113},"Create a table for each regular entity that includes all simple attributes, and select one of the entity key attributes (or its component simple attributes) as the primary key.",{"name":119,"@type":110,"acceptedAnswer":120},"What approaches exist for mapping binary 1:1 relationship types?",{"text":121,"@type":113},"The text lists three approaches: the foreign key approach, the merged relationship approach, and the cross-reference/relationship relation approach.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655989,1793073814,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":36,"preview_page_count":19,"preview_urls":145},549768072016,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","# From ER to Relational Mapping\n\nNow we focus on the logical database design or data model mapping step ofdatabase design.Below the procedures to create a relational schema from an Entity-Relationship(ER)schema.  \nMany computer aided software engineering(CASE)tools are based on the ER models,or othersimilar models.  \nMany tools use ER diagrams to graphically develop the schema,and then convert it automaticallyinto a relational database schema by using a DDL language of a specific relational DBMS.Thisconversion is provided with the implementation of algorithms.  \nBelow six(steps)algorithms to convert the ER model and one (steps)algorithm for EER Model:  \n·Step ER 1:  Mapping of Regular(strong)Entity Types,  \n·Step ER 2:  Mapping of Weak Entity Types  \n·Step ER 3:  Mapping of Binary 1:1 Relationship Types.  \n·Step ER 4:  Mapping of Binary 1:N Relationship Types  \n·  Step ER 5:  Mapping of Binary M:N Relationship Types  \n·Step ER 6:  Mapping of Multivalued Attributes  \n·Step EER1:Mapping specialization and generalization  \n## Step 1:Mapping of Regular Entity Types\n\n·For each regular(strong)entity type Ein the ER,create a table R that includesall the simple attributes of E.  \n·Include only the simple componentattributes of a composite attribute.  \n·Choose one of the key attributes of E asthe primary key for R.If the chosen keyof E is a composite,then the set ofsimple attributes that form it,willtogether form the primary key of R.  \nEMPLOYEE  \nDEPARTMENT  \n\n| Dname   | Dnumber   |\n| --- | --- |\n\nPROJECT  \n\n| Pname   | Pnumber   | Plocation   |\n| --- | --- | --- |\n\nThe ER conceptual schema diagram for the COMPANY database.  \n| Fname   | Minit   | Lname   | Ssn   | Bdate   | Address   | Sex   | Salary   |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n\n## Step 2:Mapping of Weak Entity Types\n\n·For each weak entity type W in the ERwith owner entity type E,create a tableR and include all simple attributes of Was attributes of R.  \n·Include as foreign key attributes of R,the primary key attribute(s)of the tablethat correspond to the owner entitytype.The primary key of R is thecombination of the primary key(s)ofthe owner and the partial key of theweak entity type W,if any.  \nDEPENDENT  \nThe ER conceptual schema diagram for the COMPANY database.  \n| Essn   | Dependent_name   | Sex   | Bdate   | Relationship   |\n| --- | --- | --- | --- | --- |\n\nStep 3:Mapping of Binary 1:1 Relationship Types.  \n·For each binary 1:1 relationship type Rin the ER,identify the tables S and Tthat correspond to the entity typesparticipating in R.There are threepossible approaches:  \na)the foreign key approach (more useful)  \nb)the merged relationship approach  \nc)the cross reference or relationshiprelation approach.  \n### a)Foreign key approach:\n\n·Choose one of the tables between S and Tand include in S as a foreign key the primarykey of T.It is better to choose an entity typewith total participation in R in the role of S.  \n·Include all the simple attributes (or simplecomponents of composite attributes)of the  \n1:1 relationship type R as attributes of S.  \nIt is possible to include the primary key of S as a foreign key in T,but itbut itwill have a NULL value for employee tuples who do not manage aage adepartment.(Participations are not total)  \nThe ER cThe ER conceptual schema diagram for the COMPANY database.nd Tmarytypef S.mplethe  \nDEPARTMENT  \n\n| Dname   | Dnumber   | Mgr_ssn)   | Mgr_start_date   |\n| --- | --- | --- | --- |\n\n)  \nEMPLOYEE DEPARTMENT  \n\n| Fname   | Minit   | Lname   | Ssn   | Bdate   | Address   | Sex   | Salary    | Dname   | Dnumber   | Mgr_start_date   |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\n### c)  Cross-reference or relationship\n\ntables.  \n\n| Ssn   | Dnumber   | Mgr_start_date   |\n| --- | --- | --- |\n\n## Step 4:Mapping of Binary 1:N Relationship Types:\n\nEMPLOYEE  \n\n| Fname   | Minit   | Lname   | Ssn   | Bdate   | Address   | Sex   | Salary   | Dno   |\n| --- | --- | --- | --- | --- | --- | --- | --- | --","cbCaip1pukID1P7R","https://ap.wps.com/l/cbCaip1pukID1P7R","pdf",1914014,16,"English","# From ER to Relational Mapping\n## Step 1: Mapping of Regular Entity Types\n## Step 2: Mapping of Weak Entity Types\n## Step 3: Mapping of Binary 1:1 Relationship Types\n## Step 4: Mapping of Binary 1:N Relationship Types","[{\"question\":\"What is the overall goal of ER to relational mapping?\",\"answer\":\"To create a relational schema from an ER schema by converting entities, attributes, and relationships into database tables using defined procedures.\"},{\"question\":\"How are regular (strong) entity types mapped to tables?\",\"answer\":\"Create a table for each regular entity that includes all simple attributes, and select one of the entity key attributes (or its component simple attributes) as the primary key.\"},{\"question\":\"What approaches exist for mapping binary 1:1 relationship types?\",\"answer\":\"The text lists three approaches: the foreign key approach, the merged relationship approach, and the cross-reference/relationship relation approach.\"}]","From ER to Relational Mapping - Step-by-Step Guide - Algorithms for ER and EER | PDF",1792965386,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7ac1b92b3808fa5340039b5e7472e134.webp",983,694,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1c0d68e7578b4209670db1140a2bfd04.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a848a6128b1c62ac5522e76f330dcef1.webp",981,693,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c71918ed55f948d5a7e32b587163f47c.webp",980,692,{"list":162,"token":66},[163,169,175,181,187,193,199,205,211,218],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":44,"category_name":40,"create_tm":168},655977,"Database Schema Design - Using - Entity-Relationship Approach (ER Approach or ER Model)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296116/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=UBHamI%2FLKdTx0aCmIKJvUpUVS8Y%3D","database-schema-design-using-entity-relationship-approach-er-approach-or-er-model",1792965274,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":39,"category_name":40,"create_tm":174},656000,"Database Concepts - Lecture 5 - The Enhanced ER Diagram","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781895/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=9gRO4UlcFqh7En6bcBVNHLjZoFM%3D","database-concepts-lecture-5-the-enhanced-er-diagram",1792965470,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":29,"category_name":40,"create_tm":180},655994,"Entity-Relationship Model - Conceptual Modeling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=ajDZ0zoD72ettiHT%2BQGR%2F169Kzg%3D","entity-relationship-model-conceptual-modeling",1792965431,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":44,"category_name":40,"create_tm":186},656089,"THE ENTITY-RELATIONSHIP (ER) MODEL - Chapter 7 - Lecture Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975299863/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=lZ4q1DS1FIZ9kSU3%2BMqT%2BLUJ%2FJQ%3D","the-entity-relationship-er-model-chapter-7-lecture-outline",1792966234,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":34,"category_name":40,"create_tm":192},656004,"ER and EER - Part Two - Relationship Attributes, Weak Entities, and ER Design Choices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975297355/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=cMX8U39yCdYQydNqnP62XoXshHM%3D","er-and-eer-part-two-relationship-attributes-weak-entities-and-er-design-choices",1792965558,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":24,"category_name":40,"create_tm":198},655999,"THE ENHANCED ER MODEL - Key Concepts - Sub Class and Super Class, Specialization and Generalization, Union or Category, Aggregation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296977/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=Lpz9LDLeNElww0uK%2BAuOtpG8Y50%3D","the-enhanced-er-model-key-concepts-sub-class-and-super-class-specialization-and-generalization-union-or-category-aggregation",1792965468,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":34,"category_name":40,"create_tm":204},656086,"Chapter 7 - Entity-Relationship Model - Database Design Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975299797/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=BwM1nFIqpoZK8rpJSdyEh3y1spU%3D","chapter-7-entity-relationship-model-database-design-concepts",1792966214,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":34,"category_name":40,"create_tm":210},656020,"Chapter 2: Entity-Relationship Model - Entity Sets, Relationship Sets, and Mapping","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975297804/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=mi1%2FucbbYIn9Tv8Nvgs3jUlQDXo%3D","chapter-2-entity-relationship-model-entity-sets-relationship-sets-and-mapping",1792965696,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},655996,"Conceptual Modeling CSC2507 - The Extended Entity-Relationship Model - 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781864/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=AKi87cIyusFLl0%2F1Y92qqQMOPmg%3D","conceptual-modeling-csc2507-the-extended-entity-relationship-model-1",12,1792965463,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":29,"category_name":40,"create_tm":223},655993,"Appendix D - Network Model - Data-structure diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=p%2BuODin%2FDGUJBvHDTk%2BRZJ3E6sU%3D","appendix-d-network-model-data-structure-diagrams",1792965396]