1 Introduction to modeling ER modelling Slides for this part are based on Chapters 8 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling Hachim Haddouti
Advertisements

Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
IT420: Database Management and Organization
Entity-Relationship Model
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Entity Relationship (E-R) Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Chapter Five Data Modeling with the Entity-Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Model
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
ICOM 5016 – Introduction to Database Systems Lecture 4 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
1 Introduction to modeling Relational modelling Slides for this part are based on Chapters 11 from Halpin, T. & Morgan, T. 2008, Information Modeling and.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 5 Entity Relationship (ER) Modelling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Data Modeling IST210 Class Lecture.
Metamodels for Object Role Modeling Hongyan Song March 2005.
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
1 Introduction to modeling Object-role modelling (ORM) Slides for this part are based on Chapters 3-7 from Halpin, T. & Morgan, T. 2008, Information Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Database Design – Lecture 4 Conceptual Data Modeling.
advanced data modeling
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Introduction to modeling
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
1 Reference Scheme Reduction on Subtypes in ORM Andy Carver and Terry Halpin INTI International University, Malaysia
TMC2034 Database Concept and Design
Entity Relationship (E-R) Modeling
Requirements Become the E-R Data Model
Tables and Their Characteristics
Database Design – Lecture 4
Entity-Relationship Modelling
Module 8 – Database Design Using the E-R Model
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Modelling
Chapter 4 Entity Relationship (ER) Modeling
Database Processing: David M. Kroenke’s Chapter Five:
Introduction to modeling
Entity Relationship (ER) Modeling
Chapter 6b: Database Design Using the E-R Model
Presentation transcript:

1 Introduction to modeling ER modelling Slides for this part are based on Chapters 8 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition (ISBN: ), published by Morgan Kaufmann Publishers.

2 Where are we? #TitleDate 1Introduction ORM modeling Relational modeling ER modeling OO modeling Process modeling Service modeling Exam

3 Intro ER models business domains in terms of entities that have attributes and participate in relationships Very popular data modeling approach for databases Originally proposed by Peter Chen in 1976 Material on this slide based on Ch 8.1 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

4 Barker notation Building blocks: entities, relationships, and attributes Attributes: –“#” indicates that the attribute is, or is a component of, the primary identifier of the entity type –“*” indicates that the attribute is mandatory –“°” indicates the attribute is optional Relationships are restricted to binaries –A solid half-line denotes a mandatory role, and a dotted half-line indicates an optional role –Crow’s foot notation is used for cardinality; intuitively indicates “many”, by its many “toes”; the absence of a crow’s foot intuitively indicates “one” Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

5 Barker notation (cont’) ER diagram (a) and its equivalent to ORM (b) Verbalization: Each A (must | may) be R (one and only one B | one or more B-plural-form) –Each Employee must be an occupier of one and only one Room; Each Room may be occupied by one or more Employees. Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

6 Equivalent Barker ER and ORM diagrams Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

7 Composite identification in Barker ER A bar “|” across one end of a relationship indicates that the relationship is a component of the primary identifier for the entity type at that end. Composite identification in (a) Barker ER and (b) ORM Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

8 Other constraints in Barker ER Exclusion constraints are shown as an “exclusive arc” connected to the roles with a small dot or circle Mutually exclusive and disjunctively mandatory constraints uses the exclusive arc, but each role is shown as mandatory (solid line) Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

9 Other constraints in Barker ER Subtyping is depicted with a version of Euler diagrams. Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

10 Barker ER notation – summary Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

11 Information Engineering (IE) Notation Different versions exist, no single standard Supported by many data modeling tools very popular notation for database design Material on this slide based on Ch 8.3 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

12 Equivalent constraint patterns in IE and ORM Material on this slide based on Ch 8.3 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

13 IDEF1X notation overview Material on this slide based on Ch 8.4 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

14 ERmap – Mapping from ORM to ER Material on this slide based on Ch 8.5 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

15 Some examples of ERmap steps Step 1.1 Step 1.2 Step 1.3 Step 2 Step 3 Step 4 Material on this slide based on Ch 8.5 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition

16 Some remarks on ER vs ORM In general, attribute-free approaches have advantages for conceptual analysis, including simplicity, stability, and ease of validation Attributes allow compact diagrams that directly represent the implementation data structures (e.g., tables or classes). –Compact yet still high level view of the business domain –But whether some fact ends up in the design as an attribute should not be a conceptual issue Attribute-free approaches offer greater semantic stability –If one models a feature as an attribute and finds out later that something needs to record about it, it needs to be remodel as an entity type or relationship because attributes can’t have attributes or participate in relationships ORM models facilitate validation by both verbalization and population –Attributes make it awkward to use sample data populations ER models are further removed from natural language and may be harder for the domain expert to conceptualize –Ternary vs binary relationships: an n-ary association may always be transformed into binaries, however this may introduce an object type that appears artificial to the domain expert In general ER notations are less expressive than ORM for capturing constraints or business rules

17 Resources Chapter 8 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition (ISBN: ), published by Morgan Kaufmann Publishers. Richard Barker, Case*Method: Entity Relationship Modelling (1990), published by Addison-Wesley Professional Tools: –RISE Editor: –Calligra Flow: –Dia:

18 Next lecture #TitleDate 1Introduction ORM modeling Relational modeling ER modeling OO modeling Process modeling Service modeling Exam

19 Questions?