ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Entity-Relationship (ER) Modeling
Information System Analysis Lab 7. ERD entity-relationship diagram is a data modeling technique that creates a graphical representation of the entities,
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
IT420: Database Management and Organization
Modeling the Data: Conceptual and Logical Data Modeling
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
System Analysis - Data Modeling
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Modeling & Designing the Database
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Entity-Relationship Design
Trisha Cummings.  Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Chapter 3: Modeling Data in the Organization
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Database Design Principles – Lecture 3
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Database Design – Lecture 3 Conceptual Database Design.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Entity – Relationship Model (E-R Model)
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Dr. Chaitali Basu Mukherji
DBMS ER model-2 Week 6-7.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Modeling
Data Modeling Using the ERD
بسم الله الرحمن الرحيم.
Database Systems Instructor Name: Lecture-9.
Review of Week 1 Database DBMS File systems vs. database systems
Entity-Relationship Diagram (ERD)
E.R. Examples.
Presentation transcript:

ENTITY RELATIONSHIP DIAGRAM

Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship and cardinality and primary key Describe the entity modeling process Discuss how to draw an ERD Describe how to recognize entities, attributes, relationships and cardinalities

Database Model A database can be modeled as: A collection of entities Relationship among attributes Database systems are often modeled using an ERD as the “blueprint” from which actual data is stored - the output of the design phase

ERD ER model allows us to sketch database designs ERD is a graphical tool for modeling data ERD is widely used in database design ERD is a graphical representation of the logical structure of a database ERD is a model that identifies the concepts or entities that exist in a system and the relationship between those entities

Purpose of ERD An ERD serves several purposes The database analyst/designer gains a better understanding of the information to be contained in the database through the process of constructing the ERD The ERD serves as documentation tool Finally, the ERD is used to communicate the logical structure of the database to users. In particular, the ERD effectively communicates the logic of the database to users

Components of an ERD An ERD typically consists of four different graphical components: Entity Relationship Cardinality Attribute

Classification of Relationship Optional Relationship An employee may or may not be assigned to a Department A patient may or may not be assigned to a bed Mandatory Relationship Every course must be taught by at least one teacher Every mother have at least a child

Cardinality Constraints Express the number of entities to which another entity can be associated via a relationship set. Cardinality constraints – the number of instances of one entity that can be associated with each instance of another entity. Minimal cardinality if zero, then optional If one or more, then mandatory Maximum cardinality maximum number

Cardinality constraints Cont’d… For a binary relationship set the mapping – cardinality must be one of the following types: One to one A Manager Heads one Department and Vice Versa One to many (or many to one) An Employee Works in one Department or One Department has many Employees Many to many  A Teacher Teaches many students and A student is taught by many Teachers

Cardinality Constraints Cont’d… Mandatory one Mandatory many Optional one Optional many

Cardinality Constraint Example In our model, we wish to indicate that each school may enroll many students, or may not enroll any students at all. We wish to indicate that each student attends exactly one school. The following example indicates this optionality and cardinality :

Example Cont’d Each school enrolls at least zero and at most many students STUDENT SCHOOL

General steps to create an ERD Identify the entity Identify the entities attributes Identify the primary keys Identify the relationships between entities Identify the cardinality constraint Draw an ERD Check the ERD

Steps in building an ERD Model Entities and Attributes Choose Primary Keys Model Relationships Determine Cardinalities Check the model

Developing an ERD The process has ten steps 1. Identify entities 2. Find relationships 3. Draw a rough ERD 4. Fill in cardinality 5. Define primary keys 6. Draw key-based ERD 7. Identify attributes 8. Map attributes 9. Draw fully attributed ERD 10. Check Results