Stephen C. Hayne Data Modeling zMethod yidentify/describe data entities zNotation yway to illustrate findings zApproaches yNormalization yEntity Relationship.

Slides:



Advertisements
Similar presentations
Conceptual / semantic modelling
Advertisements

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
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.
Pertemuan Entity Relationship Diagram
System Analysis - Data Modeling
Lecture Eleven Entity-Relationship Modelling
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
Entity-Relationship (E-R) Model
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
Entity-Relationship modeling Transparencies
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 4 The Relational Model.
Chapter 5 Entity–Relationship Modeling
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
Entity Relationship Modeling
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
C HAPTER 11 Entity-Relationship modelling Transparencies © Pearson Education Limited 1995,
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
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)
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Entity Relationship Modeling
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
1 Database Systems Entity Relationship (E-R) Modeling.
Chapter 11 (2) CIS458 Sungchul Hong. Structural Constraints Main type of constraint on relationships is called multiplicity. Multiplicity - number (or.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Business System Development
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Conceptual Design & ERD Modelling
Chapter 4: Part B Logical Database Design and the Relational Model
Requirements Become the E-R Data Model
Entity-Relationship Modelling
Entity-Relationship Modeling
Entity-Relationship Modeling
Entity-Relationship Modelling
Data Modeling and the Entity-Relationship Model
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
376a. Database Design Dept. of Computer Science Vassar College
Review of Week 1 Database DBMS File systems vs. database systems
Conceptual Data Modeling Using Entities & Relationships
Entity-Relationship Diagram (ERD)
Data Modeling and the Entity-Relationship Model
Presentation transcript:

Stephen C. Hayne Data Modeling zMethod yidentify/describe data entities zNotation yway to illustrate findings zApproaches yNormalization yEntity Relationship

Entity Relationship Model zStrong and weak entity types zAttributes zBinary relationships zDesign problems zRecursion and generalization

Stephen C. Hayne Basic concepts zEntity yidentifiable object or concept zAttribute yproperty of an entity or relationship zRelationship yan association among entities zIdentifier yone or more attributes identifying an instance of an entity

Stephen C. Hayne Entity (or entity class) vs. entity instance

Stephen C. Hayne Entity types zStrong yexistence does not depend on the existence of another entity zWeak yexistence is dependent on the existence of another entity ybusiness rules vs. logical dependence yID-dependence (physical dependence)

Stephen C. Hayne Entity-Relationship Model Relationship Identifying Relationship Entity Weak Entity

Stephen C. Hayne Entity examples Staff Branch Next of Kin Room zWhich are strong, weak, ID-dependent entities?

Stephen C. Hayne Attributes or properties DORMITORY Location DormName Number of Rooms DORMITORY DormName Location Number of Rooms

Stephen C. Hayne Identifiers zNon-unique yLastName zUnique (key) ySSN zComposite y{AreaCode, LocalNumber} y(is this unique?)

Stephen C. Hayne Binary relationships: HAS-A IsAssignedOccupies BelongsTo

Stephen C. Hayne Binary Relationship StudentClass 0:N0:35 IsEnrolledIn Partial Participation

Stephen C. Hayne Binary Relationship StudentClass 1:N IsEnrolledIn Total Participation

Stephen C. Hayne Ternary relationships zCan often (always) split one relationship of degree 3 into two (three) relationships of degree 2; are these independent?...

Stephen C. Hayne More on relationships zRelationship classes vs. instances zRelationships can have attributes (equivalent to degree=3) zCrows feet representation of cardinality Rent

Stephen C. Hayne Cardinality zNumber of elements allowed on each side of a relationship (participants) zMaximum Cardinality yMaximum number of entities that can be involved in relationship: typically 1 or many zMinimum Cardinality yMinimum number of entities that MUST be involved in relationship : typically 0 or 1 yAlso called participation constraints: total or partial

Stephen C. Hayne Cardinality constraints PROPERTYOWNER 1:N Owns AUTOEMPLOYEE 1:1 Assigned CLUBSTUDENT N:M Joins

Stephen C. Hayne Fan traps zMultiple 1:N relationships from the same entity where a relationship between child entities is required zSolve it!

Stephen C. Hayne Fan traps Solution

Stephen C. Hayne Chasm traps zMissing a required pathway between entities zSingle line: partial participation zSolve it!

Stephen C. Hayne Chasm traps Solution

Stephen C. Hayne Recursive relationships zParticipants are instances of same class

Stephen C. Hayne Recursive Relationship Volunteer Supervisor Supervisee Supervises Role Name 0:N 1:1

Stephen C. Hayne Weak relationship zRelationships involving weak entities yLogical dependency yID-dependency

Stephen C. Hayne A full E-R diagram example zProperties can be shown in the diagram or listed separately

Stephen C. Hayne Supertype & subtype entities zExclusive vs. non-exclusive subtypes zRequired vs. optional subtypes

Stephen C. Hayne Generalization hierarchy zRepresented by supertypes & subtypes zAlso called: ytype hierarchy yIS-A relationships zInheritance ysubtype entities inherit attributes of supertype entity

Stephen C. Hayne Putting it together zAdd business rules yConstraints, restrictions, protocols yDocument the rules zEvaluate your data model! yWhat queries can you pose? yAre there any connection traps? yDoes it model the users model of the business world?

Stephen C. Hayne Form pairs Find: 1 business rule 1 query Share