Entity-Relationship Model. Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar

Size: px
Start display at page:

Download "Entity-Relationship Model. Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar"

Transcription

1 Entity-Relationship Model Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar

2 Conceptual data modelling motivation, Entities, Entity types, Various types of attributes, Relationships, Relationship types, E/R diagram notation, Extended E/R Model, Examples.

3 To be discussed!!! Entity Sets Relationship Sets Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an E-R Schema to Tables

4 An entity is an object of interest to the end user. e.g. a person, a place, a thing or an event Entities are described in the database by a set of attributes. e.g. the name and address of a person. An entity set (type) is a set of entities of the same type that share the same properties or attributes. e.g. set of all persons, companies, trees, holidays

5 Domain A domain can be either explicit (e.g. gender)or implicit (e.g. salary). Association (relationship) STUDENTS enroll in COURSE SUPPLIERS supply PARTS SALESPERSON processes ORDER Entity type Base entity type; Weak entity type

6 Entity set can be abstract or concrete. Set of Holidays (Abstract) Set of students (Concrete) A relationship is an association among several entities. The ER data model is based on the perception of real world that consists of a collection of entities and the relationships among entities.

7 The ER model includes: I. ER diagram (ERD) portraying entity sets, attributes for each entity set, and relationships among entity sets. II. Semantic integrity constraints that reflect the business rules about data not captured in the ER diagram.

8 Summary of Presentation Layer ER diagram notation

9 Attribute Atomic or Simple (e.g. salary) Composite or Molecular (e.g. dob) Stored or Derived(e.g. Age) Single-valued Multi-valued (e.g. skill) Mandatory (value must be assigned) Optional (value need not be assigned, e.g. NULL) Complex (composite and/or multivalued attributes that are nested as meaningful cluster)

10 Pat_No F_Name M_Int Pat_Prefix L_Name Pat_ID Pat_Name Date_of_Birth SSN PATIENT Address Phone Age Medical Profile Blood Height Weight Allergy Type Sugar HDL LDL Triglyceride Cholesterol Code Name Intensity Figure 2.3 A graphical representation of an entity type PATIENT

11 Note : various attribute characteristics in PATIENT: Optional simple/atomic: Date_of_ birth, Address Optional multi-valued: Phone Optional simple/atomic derived: Age Mandatory composite: Pat_Name, Pat_ID Mandatory simple/atomic that serves as a unique identifier: SSN Mandatory composite that serves as a unique identifier: Pat_ID Complex: Medical Profile

12 Example: Attributes Entity Set Relationship Set

13 Different Type of Attributes and Entities Roll_no Simple/single Attribute DD MM YYYY employee Strong Entity set DOB Composite Attribute Skill Multivalued Attribute dependants Weak Entity set Derived Attribute

14 E1 m n R Cardinality Ratio of m:n E2 Chen's Notation E1 R E2 Cardinality Ratio of m:n Crow's Foot Notation E1 R E2 E1 Optionally Related To E2 (Partial Participation of E1 in R) E2 Mandatorily Related to E1 (Total Participation of E2 in R) [Existence Dependency of E2 in R] Inclusive Arc Noninclusive Arc Exclusive Arc Summary of Presentation Layer ER diagram notation

15 List all discernable data elements and treat them as attributes Group these attributes based on apparent commonalities Designate each cluster of attributes as an entity type Review leftover data elements and investigate the possibility that some of them serve as links among the entity types previously identified Designate these links as relationship types

16 Begin by searching for things that can be labeled by singular nouns and call these things entity types Gather properties that appear to belong to individual entity types and label them as attributes of a particular entity type Be sensitive throughout the process to the identification of relationships among the various entity types

17

18 Employees works in these plants and each employee works in only one plant. Every plant is managed by an employee who works in the same plant; but every employee is not a plant manager nor can an employee manage more than one plant. Company policy dictates that every plant must have a manager. Some employees are assigned to work on projects and in some cases might even be assigned to work on several projects simultaneously. For a project to exist, it must have at least one employee assigned to it. Projects might need several employees depending on their size and scope.

19

20 A super key of an entity set is a set of one or more attributes whose values uniquely determine each entity. A candidate key of an entity set is a minimal super key Customer-id is candidate key of customer account-number is candidate key of account Although several candidate keys may exist, one of the candidate keys is selected to be the primary key by the database designer.

21 Lname Minit Fname Name Name_tag Address Salary n Works_in 1 Pl_name Pnumber employer Building Emp# worker No_of_employees Gender Date_hired EMPLOYEE manager Mgr_start_dt PLANT Budget No_of_dependents 1 Managed_by managed by 1 1 Responsible Supervisee Assignee Undertaken_by Holder of Supervisor Hours n Controlled 1 Supervised_by 20 n Having 1 m Assigned n Assignment PROJECT Plocation Pr_name 1 Dependent_of Pnumber Held_by_E m Dname Related_how n Depends_on Dependent DEPENDENT Belongs to Participant Birthdate Gender Account Holder 1 Held_by_D m Participates Annual_cost n Account of Hb_name n Usage Hrs_per_wk Account_id BANK BCU_ACCOUNT HOBBY Gi_activity Acct_type Account# Io_activity Balance Figure 3.3 Presentation Layer ER diagram for Bearcat, Incorporated

22 Various Structural Constraint Notations more precise and expressive

23 Explanation participation cardinality ration The pair of finite whole numbers (min, max) is used with each participation of an entity type E in a relationship type R without any reference to other entity types participating in the relationship R where 0 min max and max > 0. The meaning is conveyed here is that each entity e in E participates in at least min and at most max relationships (r 1, r 2, ) in R. In this notation, min = 0 implies partial or optional participation of E in R, and min 1 implies total or mandatory participation of E in R. An employee participates in at least 0 (min=0) (optional participation) and at most m (max=m) Held_by_E relationships, meaning that an employee need not have a BCU account, but may have many BCU accounts. Similarly a BCU account need not belongs to any employee, but can belong to a maximum of one employee.

24 Lname Minit Fname Name Name_tag Address (1, 1) Salary Works_in (100, n) Pl_name Pnumber Building Emp# Gender Date_hired EMPLOYEE (0,1) Mgr_start_dt No_of_employees (1,1) PLANT Budget No_of_dependents Managed_by (0,n) (0,m) (0, 20) (0, 1) (0, n) (0, n) Hours Undertaken_by (1,1) Plocation Supervised_by Assigned (1, m) PROJECT Pr_name Dependent_of Pnumber Held_by_E Dname Related_how (1, 1) Transformed from the Chen s (look across) notation to [min, max] (look here) notation Dependent DEPENDENT (0,1) Birthdate (0, n) Gender (0, n) Annual_cost Held_by_D Participates (0,1) Hb_name (0,m) Hrs_per_wk Account_id BCU_ACCOUNT HOBBY Gi_activity Acct_type Account# Io_activity Balance Figure 3.5 Course-granular Design-Specific ER diagram for Bearcat, Incorporated - Stage 1

25 Deletion Constraints (continued) Set Null Rule (N): If a parent entity in a relationship is deleted and if all child entities related to this parent in this relationship should be retained but no longer referenced to this parent, the set null rule applies. Set Default Rule (D): If a parent entity in a relationship is deleted and if all child entities related to this parent in this relationship should be retained but no longer referenced to this parent but should be referenced to a predefined default parent, the set default rule applies.

26 The Four Deletion Rules Deletion Rule Examples FACULTY FACULTY R prohibits the deletion of Faculty member serving as dissertation chair of one or more students. R (0,n) Diss_chair (1,1) (0,n) Diss_chair (1,1) C C implies that deletion of a faculty members leads to the deletion of all students for whom the faculty member serves as dissertation chair. STUDENT STUDENT The Restrict Rule The Cascade Rule When a parent entity in a relationship is deleted, if all child entities related to this parent in this relationship should not be deleted, then the deletion of the parent should be restricted. When a parent entity in a relationship is deleted, if all child entities related to this parent should be deleted, then the cascade rule applies. N allows a student to exist without a dissertation chair by simply nullifying the relationship of students with the faculty m embers, should the faculty member be deleted. FACULTY (0,n) Diss_chair (1,1) (0,1) N STUDENT FACULTY (0,n) Diss_chair (1,1) D STUDENT D is somewhat similar to N. instead of nullifying the relationship, a student is linked to a predetermined (default) dissertation chair, should the student s current dissertation chair be deleted. The Set Null Rule The Set Default Rule When a parent entity in a relationship is deleted, if all child entities related to this parent in this relationship should be retained but no longer referenced to this parent, the set null rule applies. When a parent entity in a relationship is deleted, if all child entities related to this parent in this relationship should be retained but no longer referenced to this parent, but should be referenced to a predefined default parent, the set default rule applies.

27 Representing Deletion Constraints Using Deletion Rules Lname Minit Fname Name Name_tag Address (1, 1) Salary Works_in Pl_name Pnumber (100, n) Building Emp# R Gender Date_hired EMPLOYEE D R R N (0,1) Mgr_start_dt No_of_employees (1,1) PLANT Budget No_of_dependents Managed_by (0,n) (0,m) (0, 20) (0, 1) (0, n) (0, n) Hours Undertaken_by (1,1) N Plocation Supervised_by Assigned C (1, m) PROJECT Pr_name Dependent_of Pnumber Held_by_E Dname Dependent Related_how (1, 1) C 1. deletion rule on undertaken_by conflicts with the participation constraint of PROJECT 2. Contradicting deletion rules on DEPENDENT DEPENDENT R (0,1) Birthdate (1, n) Gender (0, n) C Annual_cost Held_by_D Participates (0,1) Hb_name (0,m) R Hrs_per_wk Account_id C BCU_ACCOUNT Balance HOBBY Gi_activity Acct_type Account# Io_activity Figure 3.7 Course-granular Design-Specific ER diagram for Bearcat, Incorporated - Stage 2 {deletion constraints added}

28 A plant with employee can not be deleted Lname Minit Fname Name Name_tag Address (1, 1) Salary Works_in Pl_name Pnumber (100, n) Building Emp# R The HR department uses a designated default employee number to replace a supervisor who leaves the company. Gender Date_hired No_of_dependents (0,m) Held_by_E Dname EMPLOYEE (0, 20) Dependent D (0, 1) Supervised_by Related_how R R (0, n) N Dependent_of (1, 1) C (0,1) (0, n) Mgr_start_dt Managed_by Hours Assigned C No_of_employees (1,1) (1, m) Pnumber PLANT (0,n) Undertaken_by (1,1) PROJECT Budget Plocation 1. deletion rule on undertaken_by conflicts with the participation constraint of PROJECT 2. Contradicting deletion rules on DEPENDENT N Pr_name If a plat is closed down, the projects undertaken by that plant cannot be cancelled. The project assignments from a closed plant must be temporarily removed in order to allow the project to be transferred to another plant. DEPENDENT R (0,1) Birthdate (1, n) Gender (0, n) C Annual_cost If an employee is deleted, all BCU accounts of that particular employee must be deleted. Account_id C Held_by_D (0,1) BCU_ACCOUNT Balance Hb_name Participates (0,m) R HOBBY Hrs_per_wk Gi_activity Acct_type Account# Io_activity Figure 3.7 Course-granular Design-Specific ER diagram for Bearcat, Incorporated - Stage 2 {deletion constraints added}

29 An employee currently managing a plant can not be deleted from the database. Lname Name_tag Minit Address Fname Name Emp# Gender EMPLOYEE R Date_hired D R Salary (1, 1) N (0,1) Works_in Mgr_start_dt Pl_name Pnumber (100, n) R No_of_employees PLANT (1,1) Building Budget If a plant is closed down, the employee no longer manages the plant but becomes an employee of another plant. No_of_dependents (0,m) (0, 20) (0, 1) Supervised_by (0, n) (0, n) Managed_by Hours Assigned C (1, m) (0,n) Undertaken_by (1,1) N PROJECT Plocation Pr_name Dependent_of Pnumber If an employee leaves the company, all dependants and BCU accounts of the employee must be removed. Held_by_E Dname Dependent (0,1) Related_how Birthdate (1, 1) DEPENDENT (1, n) C R Gender 1. deletion rule on undertaken_by conflicts with the participation constraint of PROJECT 2. Contradicting deletion rules on DEPENDENT (0, n) C Annual_cost As long as a dependant has a BCU account, deletion of the dependant is not permitted. Account_id C Held_by_D (0,1) c BCU_ACCOUNT Balance Hb_name Participates (0,m) R HOBBY Hrs_per_wk Gi_activity Acct_type Account# Io_activity Figure 3.7 Course-granular Design-Specific ER diagram for Bearcat, Incorporated - Stage 2 {deletion constraints added}

30 Representing Deletion Constraints Using Deletion Rules (continued) As long as an employee is assigned to a project, his or her record cannot be removed from the database. Emp# Gender Fname Date_hired No_of_dependents Minit Lname Name Address EMPLOYEE Name_tag D R R Salary (1, 1) N (0,1) Works_in Mgr_start_dt Managed_by Pl_name Pnumber (100, n) R No_of_employees PLANT (1,1) (0,n) Building Budget If a project is deleted, all assignments of employees to that project must be deleted. If a dependent is deleted, all records of the participation of that dependent in hobbies must be deleted. (0,m) Held_by_E Dname (0, 20) Dependent (0, 1) Supervised_by Related_how (0, n) (0, n) Dependent_of (1, 1) C DEPENDENT Undertaken_by Hours (0,1) Plocation N (1, m) Assigned PROJECT Pr_name C Pnumber Conflicting deletion rules and constraints realigned A hobby with at least one dependent participating in it can not be deleted. (0,1) Birthdate (0, n) Gender Held_by_D (0,1) (0, n) Hb_name C Participates (0,m) R Annual_cost Hrs_per_wk Account_id C C BCU_ACCOUNT Balance HOBBY Gi_activity Acct_type Account# Io_activity Figure 3.8 Course-granular Design-Specific ER diagram for Bearcat, Incorporated - Final

31

32 Enhanced Entity-Relationship (EER) Model Enhanced Entity-Relationship (EER) modeling is an extension to the ER modeling that incorporates additional constructs Central construct: Superclass/subclass (SC/sc) relationship More specifically: Specialization/generalization Categorization Aggregation Data Modeling & Database Design (EER Modeling) 32

33 Superclass/Subclass Relationship (SC/sc) Inter-Entity Class Relationship (Has-a Relationship) A STORE has a relationship with FURNITURE There are 3 SC/sc relationships A CHAIR is a FURNITURE A TABLE is a FURNITURE A SOFA is a FURNITURE Intra-Entity Class Relationship (Is-a Relationship) A CHAIR is a FURNITURE CHAIR, TABLE, and SOFA are entity types that belongs to entity class FURNITURE Data Modeling & Database Design (EER Modeling) 33

34 Think About It Theoretically, one has three choices of modeling furniture/chair/table/sofa I. Model three separate entity types for chair, table, and sofa, and create three separate relationship types with the entity type STORE II. Model FURNITURE as an entity type with an attribute called furniture_type; then chair, table, and sofa would be values of that attribute III.Model FURNITURE as a superclass/subclass Data Modeling & Database Design (EER Modeling) 34

35 SC/sc Relationships There are two basic kinds of SC/sc relationships Specialization/Generalization: One superclass (SC) is related to one or more subclasses (sc) Categorization: One subclass (sc) is related to one or more superclasses (SC) Data Modeling & Database Design (EER Modeling) 35

36 Properties of SC/sc Relationships An entity that exists in a subclass can be associated with only one superclass entity An entity cannot exist in the database merely by being a member of a subclass; it must also be a member of an associated superclass An entity that is a member of a superclass can be optionally included as a member of any number of its subclasses It is not required that every member of a superclass be a member of a subclass Data Modeling & Database Design (EER Modeling) 36

37 Properties of SC/sc Relationships (continued) Type Inheritance Property: A subclass inherits all the attributes of the superclass to which it is related In addition, it will also inherit all the relationship types in which the superclass participates A subclass may also have its own specific attributes in addition to the attributes inherited Likewise, a subclass may have its own specific relationship(s) with other entity types (i.e., inter-entity class relationships) Data Modeling & Database Design (EER Modeling) 37

38 Note That The cardinality ratio of any SC/sc relationship is always 1:1 The participation of the subclass in a SC/sc relationship is always total A subclass inherits all attributes as well as all relationship types that a superclass possesses (type inheritance property) Data Modeling & Database Design (EER Modeling) 38

39 Specialization and Generalization Specialization is the process of generating subgroups ( sc s) of a generic entity class (SC) by specifying the distinguishing properties (attributes) of the subgroups (top-down approach) Generalization, on the other hand, crystallizes the common properties (attributes) shared by a set of entity types ( sc s) into a generic entity type (SC) (bottom-up approach) Notation: circle + fork (indicating subset) Read: is-a Data Modeling & Database Design (EER Modeling) 39

40 Specialization and Generalization (continued) Completeness Constraint The participation of the superclass in a specialization/ generalization is referred to as the completeness constraint and can assume one of two values: total or partial Total specialization means that every entity of the superclass must participate in this specialization/ generalization relationship (indicated by a solid line from the superclass to the specialization/generalization symbol (i.e., the circle)) Partial specialization means that there may be entities present in the superclass that do not participate in this specialization/generalization (indicated by a dotted line) Data Modeling & Database Design (EER Modeling) 40

41 Specialization and Generalization (continued) Disjointness Constraint Used to specify that the subclasses of a specialization must be: Disjointed (indicated by D ), i.e., an entity of the superclass cannot be a member of more than one subclass Overlapped across subclasses (indicated by O ) We have to specify both: completeness and disjointness constraints! Data Modeling & Database Design (EER Modeling) 41

42 Notation Data Modeling & Database Design (EER Modeling) 42

43 Often attribute(s) in the superclass are used to define the predicate. If all values of the predicate are determined by the same attribute in the superclass, this attribute is referred as the defining attribute and the specialization itself is labeled attribute defined specialization. Example: sport in Fig 4.7 There are cases where the membership of the entity is determined by the end-user individually for each entity, based on some, not necessarily well defined procedure. The specialization is then called a user-defined (or procedure defined) specialization. Data Modeling & Database Design (EER Modeling) 43

44 An EER Model of Vignette 1 Multivalued attribute Subtype discriminator Defining attribute Subtype discriminator is the attribute in supertype entity that determines to which subtype the supertype occurrence is related. Data Modeling & Database Design (EER Modeling) 44

45 An Extension of Vignette 1: Multiple Specializations I. Multiple specialization of the same entity type (SC) II. Specific relationship of a subclass entity type (sc) Multivalued attribute Three independent specializations Three subclasses One subclass Two subclasses Data Modeling & Database Design (EER Modeling) 45

46

47

48

Chapter (4) Enhanced Entity-Relationship and Object Modeling

Chapter (4) Enhanced Entity-Relationship and Object Modeling Chapter (4) Enhanced Entity-Relationship and Object Modeling Objectives Concepts of subclass and superclass and the related concepts of specialization and generalization. Concept of category, which is

More information

CMP-3440 Database Systems

CMP-3440 Database Systems CMP-3440 Database Systems Database Architecture Lecture 02 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External

More information

Chapter 2: Entity-Relationship Model

Chapter 2: Entity-Relationship Model Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R

More information

Entity-Relationship Model

Entity-Relationship Model Entity-Relationship Model Data Models High-level or conceptual data models provide concepts that are close to the way many users perceive data, whereas low-level or physical data models provide concepts

More information

LECTURE 3: ENTITY-RELATIONSHIP MODELING

LECTURE 3: ENTITY-RELATIONSHIP MODELING LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t

More information

LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER)

LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER) LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER) Ref. Chapter12 from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. IS220 : D at

More information

Chapter 2 ENTITY RELATIONSHIP MODEL

Chapter 2 ENTITY RELATIONSHIP MODEL INTRODUCTION Chapter 2 ENTITY RELATIONSHIP MODEL Data model is used to describe data, data relationship and constraints on data. A number of different data models have proposed. They can broadly be classified

More information

Entity Relationship Data Model. Slides by: Shree Jaswal

Entity Relationship Data Model. Slides by: Shree Jaswal Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,

More information

0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 4 Enhanced Entity-Relationship (EER) Modeling Slide 1-2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling concepts of basic ER Additional concepts:

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 8 Data Modeling Advanced Concepts Objectives In this chapter, students will learn: About the extended entity

More information

Module 2 : Entity-Relationship Model 15

Module 2 : Entity-Relationship Model 15 Module 2 : Entity-Relationship Model 15 Module-02 Entity Relationship Data Model 2.1 Motivation Data modeling is an essential step in the process of creating any Database Application. It helps Database

More information

CS 338 The Enhanced Entity-Relationship (EER) Model

CS 338 The Enhanced Entity-Relationship (EER) Model CS 338 The Enhanced Entity-Relationship (EER) Model Bojana Bislimovska Spring 2017 Major research Outline EER model overview Subclasses, superclasses and inheritance Specialization and generalization Modeling

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Chapter 6: Entity-Relationship Model

Chapter 6: Entity-Relationship Model Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - 1DL300 Fall 2009 An introductury course on database systems http://user.it.uu.se/~udbl/dbt1-ht2009/ alt. http://www.it.uu.se/edu/course/homepage/dbastekn/ht09/ Kjell Orsborn Uppsala

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Enhanced Entity-Relationship (EER) Modeling

Enhanced Entity-Relationship (EER) Modeling CHAPTER 4 Enhanced Entity-Relationship (EER) Modeling Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes

More information

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:

More information

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ http://www.comp.nus.edu.sg/~lingt

More information

Conceptual Data Models for Database Design

Conceptual Data Models for Database Design Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database

More information

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship

More information

COIS Databases

COIS Databases Faculty of Computing and Information Technology in Rabigh COIS 342 - Databases Chapter 4 Enhanced Entity-Relationship and UML Modeling Adapted from Elmasri & Navathe by Dr Samir BOUCETTA First Semester

More information

E-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.

E-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model. E-R Model Hi! Here in this lecture we are going to discuss about the E-R Model. What is Entity-Relationship Model? The entity-relationship model is useful because, as we will soon see, it facilitates communication

More information

Chapter 6: Entity-Relationship Model

Chapter 6: Entity-Relationship Model Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Chapter 8: Enhanced ER Model

Chapter 8: Enhanced ER Model Chapter 8: Enhanced ER Model Subclasses, Superclasses, and Inheritance Specialization and Generalization Constraints and Characteristics of Specialization and Generalization Hierarchies Modeling of UNION

More information

Database Systems ER Model. A.R. Hurson 323 CS Building

Database Systems ER Model. A.R. Hurson 323 CS Building ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data

More information

CSE 530A. ER Model. Washington University Fall 2013

CSE 530A. ER Model. Washington University Fall 2013 CSE 530A ER Model Washington University Fall 2013 Database Design Requirements Analysis Conceptual Database Design Creates an abstract model Logical Database Design Converts abstract model to concrete

More information

Topic 5: Mapping of EER Diagrams to Relations

Topic 5: Mapping of EER Diagrams to Relations Topic 5: Mapping of EER Diagrams to Relations Olaf Hartig olaf.hartig@liu.se Recall: DB Design Process 2 Running Example 3 Algorithm for Mapping from the ER Model to the Relational Model Step 1: Map Regular

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Chapter 8 The Enhanced Entity- Relationship (EER) Model Chapter 8 The Enhanced Entity- Relationship (EER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 Outline Subclasses, Superclasses, and Inheritance Specialization

More information

Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52

Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52 Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models.

More information

Advance Database Management System

Advance Database Management System Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database

More information

Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model

Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model Data Modeling Using the Entity Relationship Model Part 3 Review Conceptual Schema Outcome of the high-level

More information

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005. Data Modeling with the Entity Relationship Model CS157A Chris Pollett Sept. 7, 2005. Outline Conceptual Data Models and Database Design An Example Application Entity Types, Sets, Attributes and Keys Relationship

More information

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables Entity-Relationship Modelling Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables 1 Entity Sets A enterprise can be modeled as a collection of: entities, and

More information

Chapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Chapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship

More information

Entity-Relationship Model. From Chapter 5, Kroenke book

Entity-Relationship Model. From Chapter 5, Kroenke book Entity-Relationship Model From Chapter 5, Kroenke book Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:

More information

Conceptual Database Design (ER modeling) Chapter Three

Conceptual Database Design (ER modeling) Chapter Three Conceptual Database Design (ER modeling) Chapter Three 1 Agenda (Chapter Three) Overview-database design Conceptual Design (E-R Modeling) Structural Constraints EER- Generalization and Specialization Reducing

More information

Chapter 4. Enhanced Entity- Relationship Modeling. Enhanced-ER (EER) Model Concepts. Subclasses and Superclasses (1)

Chapter 4. Enhanced Entity- Relationship Modeling. Enhanced-ER (EER) Model Concepts. Subclasses and Superclasses (1) Chapter 4 Enhanced Entity- Relationship Modeling Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses, specialization/generalization,

More information

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model.

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model. Chapter 6: Entity-Relationship Model The Next Step: Designing DB Schema Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common

More information

Data Modeling Using the Entity-Relationship (ER) Model

Data Modeling Using the Entity-Relationship (ER) Model CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application

More information

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

More information

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel Chapter 6 Advanced Data Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: About the extended entity relationship (EER)

More information

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes. Chapter 6: Entity-Relationship Model Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common data organization model The Relational

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - 1DL300 Fall 2010 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/ht10/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information

More information

MIS Database Systems Entity-Relationship Model.

MIS Database Systems Entity-Relationship Model. MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design

More information

Data Modeling Using the Entity-Relationship Model

Data Modeling Using the Entity-Relationship Model 3 Data Modeling Using the Entity-Relationship Model Conceptual modeling is a very important phase in designing a successful database application. Generally, the term database application refers to a particular

More information

Enhanced Entity- Relationship Models (EER)

Enhanced Entity- Relationship Models (EER) Enhanced Entity- Relationship Models (EER) LECTURE 3 Dr. Philipp Leitner philipp.leitner@chalmers.se @xleitix LECTURE 3 Covers Small part of Chapter 3 Chapter 4 Please read this up until next lecture!

More information

Lecture3: Data Modeling Using the Entity-Relationship Model.

Lecture3: Data Modeling Using the Entity-Relationship Model. College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by

More information

Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model

Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model Constructs to Relations Relational Database Design by ER- and

More information

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as: Chapter 2: Entity-Relationship Model Entity Sets Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an

More information

A database can be modeled as: + a collection of entities, + a set of relationships among entities.

A database can be modeled as: + a collection of entities, + a set of relationships among entities. The Relational Model Lecture 2 The Entity-Relationship Model and its Translation to the Relational Model Entity-Relationship (ER) Model + Entity Sets + Relationship Sets + Database Design Issues + Mapping

More information

4. Entity Relationship Model

4. Entity Relationship Model 4. Entity Relationship Model a) ER-Model: Used to construct conceptual data model, representing the structure and constraints of a database, which is not dependent on a software (like DBMS) or any data

More information

Conceptual Data Modeling

Conceptual Data Modeling Conceptual Data odeling A data model is a way to describe the structure of the data. In models that are implemented it includes a set of operations that manipulate the data. A Data odel is a combination

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The

More information

ER-to-Relational Mapping

ER-to-Relational Mapping Lecture 9 1 1. Context 2. The Algorithm Outline 2 Database Design and Implementation Process 3 Data Models 4 Example ERD 5 Resulting Relational Schema 6 Step 1: Regular Entity Types i. For each regular/strong

More information

DATABASDESIGN FÖR INGENJÖRER F

DATABASDESIGN FÖR INGENJÖRER F 1 DATABASDESIGN FÖR INGENJÖRER - 1056F Sommar 2005 En introduktionskurs i databassystem http://user.it.uu.se/~udbl/dbt-sommar05/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st05/ Kjell Orsborn

More information

CSIT5300: Advanced Database Systems

CSIT5300: Advanced Database Systems CSIT5300: Advanced Database Systems L01: Entity Relationship (ER) Model Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science and Technology Hong Kong SAR,

More information

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design

More information

Ch 9: Mapping EER to Relational. Follow a seven-step algorithm to convert the basic ER model constructs into relations steps 1-7

Ch 9: Mapping EER to Relational. Follow a seven-step algorithm to convert the basic ER model constructs into relations steps 1-7 Ch 9: Mapping EER to Relational Follow a seven-step algorithm to convert the basic ER model constructs into relations steps 1-7 Additional steps for EER model for specialization/generalization steps 8a

More information

Database Systems. A Practical Approach to Design, Implementation, and Management. Database Systems. Thomas Connolly Carolyn Begg

Database Systems. A Practical Approach to Design, Implementation, and Management. Database Systems. Thomas Connolly Carolyn Begg Database Systems A Practical Approach to Design, Implementation, and Management For these Global Editions, the editorial team at Pearson has collaborated with educators across the world to address a wide

More information

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling 4.1 The Entity Relationship Model (ERM) ER model forms the basis of an ER diagram ERD

More information

Full file at Chapter 2: Foundation Concepts

Full file at   Chapter 2: Foundation Concepts Chapter 2: Foundation Concepts TRUE/FALSE 1. The input source for the conceptual modeling phase is the business rules culled out from the requirements specification supplied by the user community. T PTS:

More information

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Slide 1-2 Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes

More information

Conceptual Database Design

Conceptual Database Design Conceptual Database Design Fall 2009 Yunmook Nah Department of Electronics and Computer Engineering Dankook University Conceptual Database Design Methodology Chapter 15, Connolly & Begg Steps to Build

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4-1 Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4-1 Chapter 4 Enhanced Entity-Relationship (EER) Modeling Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Chapter Outline EER stands for

More information

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship

More information

COSC 304 Introduction to Database Systems Enhanced Entity-Relationship (EER) Modeling

COSC 304 Introduction to Database Systems Enhanced Entity-Relationship (EER) Modeling COSC 304 Introduction to Database Systems Enhanced Entity-Relationship (EER) Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Enhanced Entity-Relationship Modeling

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship

More information

Intro to DB CHAPTER 6

Intro to DB CHAPTER 6 Intro to DB CHAPTER 6 DATABASE DESIGN &THEER E-R MODEL Chapter 6. Entity Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model, 7th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity

More information

More on the Chen Notation

More on the Chen Notation More on the Chen Notation Reference: http://www.vertabelo.com/blog/technical-articles/chen-erd-notation Peter Chen, who developed entity-relationship modeling and published his work in 1976, was one of

More information

Course Notes on From Entity-Relationship Schemas to Relational Schemas

Course Notes on From Entity-Relationship Schemas to Relational Schemas Course Notes on From Entity-Relationship Schemas to Relational Schemas The chapter deals with practical database design: the construction of a relational schema from an E-R schema this stage of database

More information

Represent entities and relations with diagrams

Represent entities and relations with diagrams LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts

More information

COMP Instructor: Dimitris Papadias WWW page:

COMP Instructor: Dimitris Papadias WWW page: COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management

More information

High Level Database Models

High Level Database Models ICS 321 Fall 2011 High Level Database Models Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 9/21/2011 Lipyeow Lim -- University of Hawaii at Manoa 1 Database

More information

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 CHAPTER 7 OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual

More information

Chapter 4. In this chapter, you will learn:

Chapter 4. In this chapter, you will learn: Chapter Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The main characteristics of entity

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The

More information

ER to Relational Mapping

ER to Relational Mapping ER to Relational Mapping 1 / 19 ER to Relational Mapping Step 1: Strong Entities Step 2: Weak Entities Step 3: Binary 1:1 Relationships Step 4: Binary 1:N Relationships Step 5: Binary M:N Relationships

More information

Chapter 6: Entity-Relationship Model. E-R Diagrams

Chapter 6: Entity-Relationship Model. E-R Diagrams Chapter 6: Entity-Relationship Model A database can be modeled as: a collection of entities, relationship among entities. An entity is an object that exists and is distinguishable from other objects. Example:

More information

Database Management System 6 ER Modeling...

Database Management System 6 ER Modeling... Database Management System 6 School of Computer Engineering, KIIT University 6.1 A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property

More information

Chapter 7: Entity-Relationship Model. Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model. Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Database Design Process

Database Design Process Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data

More information

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main

More information

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar 1 System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar Overview DATABASE ARCHITECTURE 2 External level concerned with the way individual users see the

More information

Overview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:

Overview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities: 1 / 14 Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship Types

More information

CSE 880:Database Systems. ER Model and Relation Schemas

CSE 880:Database Systems. ER Model and Relation Schemas CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,

More information

Sahaj Computer Solutions. Data Modeling using the Entity Relationship Model

Sahaj Computer Solutions. Data Modeling using the Entity Relationship Model Data Modeling using the Entity Relationship Model 1 C H A P T E R 3 Contents High-level Conceptual Data Models for Database design Example Database Application Entity types, Entity Sets, Attributes and

More information

CS 405G: Introduction to Database Systems

CS 405G: Introduction to Database Systems CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of

More information

DATABASTEKNIK - 1DL116

DATABASTEKNIK - 1DL116 1 DATABASTEKNIK - 1DL116 Fall 2003 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-ht2003/ Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala

More information

MTAT Introduction to Databases

MTAT Introduction to Databases MTAT.03.105 Introduction to Databases Lecture #4 Entity-Relationship Modelling Ljubov Jaanuska (ljubov.jaanuska@ut.ee) Lecture 3. Summary So far we have been dealing with a relational database (PCA.db)

More information

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship Model Chapter Objectives To understand the two-phase

More information

CONCEPTUAL DESIGN: ER TO RELATIONAL TO SQL

CONCEPTUAL DESIGN: ER TO RELATIONAL TO SQL RELATIONAL MODEL TO Data Model CONCEPTUAL DESIGN: ER TO RELATIONAL TO How to represent Entity sets, Relationship sets, Attributes, Key and participation constraints, Subclasses, Weak entity sets...? 2

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

2. E-R Model. Entity Sets Relationship Sets Attributes

2. E-R Model. Entity Sets Relationship Sets Attributes 3. E R Model 2. E-R Model Entity-Relationship Model Graphical Representation of Database Equivalent to Flow-Chart in Programming It makes easy to understand Database Prior Step to implement Actual Database

More information

Conceptual Design. The Entity-Relationship (ER) Model

Conceptual Design. The Entity-Relationship (ER) Model Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship

More information

The Enhanced Entity Relationship (EER) Model

The Enhanced Entity Relationship (EER) Model 10 The Enhanced Entity Relationship (EER) Model 10.1 INTRODUCTION In the first several chapters of this book, we presented the entity relationship (ER) diagram as a conceptual database tool. The approach

More information