E-R Model (2) IS 240 – Database Management Lecture #6 – 2004-02-05 Prof. M. E. Kabay, PhD, CISSP Norwich University

Slides:



Advertisements
Similar presentations
The Relational Model and Normalization (3) IS 240 – Database Management Lecture # Prof. M. E. Kabay, PhD, CISSP Norwich University
Advertisements

The Relational Model and Normalization (1)
Database Design (1) IS 240 – Database Management Lecture #10 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Database Design (3) IS 240 – Database Management Lecture #12 – Prof. M. E. Kabay, PhD, CISSP Norwich University
E-R Model (1) IS 240 – Database Management Lecture #5 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Chapter 3 Data Modeling Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
ENTITY RELATIONSHIP MODELLING
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
IT420: Database Management and Organization
Entity-Relationship Model
Entity-Relationship (E-R) modeling: constructing a conceptual schema (Chapter 5) Due to course constraints I have to defer other modeling issues (normalization.
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
LIS 557 Database Design and Management William Voon Michael Cole Spring '04.
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.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Model
Using ER/Studio.
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.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
CONCEPTS OF E-R MODEL. CONTENTS Entity Attributes Data Value Entity Types Types of Entity Types Relationships Relationship Constraints.
(C) 2000, The University of Michigan 1 Database Application Design Handout #3 January 21, 2000.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database Design Using the REA Data Model
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.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Concepts and Terminology Introduction to Database.
Working with MS-ACCESS IS 240 – Database Management Lecture #4 – Assoc. Prof. M. E. Kabay, PhD, CISSP-ISSMP Norwich University
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.
The Entity-Relationship Model
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Description and exemplification of entity-relationship modelling.
Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) 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.
Visio Starter Tutorial Developed from Material by Daniel L. Silver
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 2 © Akhilesh Bajaj, 2000, 2002, 2003, 2004,
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
1 © Prentice Hall, 2002 ITD1312 Database Principles Chapter 4B: Logical Design for Relational Systems -- Transforming ER Diagrams into Relations Modern.
Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model.
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)
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Tutorial on E-R Diagrams 1.Learn basic terminology and symbols –See next four slides; refer to as needed in steps 2-4 below 2.Learn the basics of E-R diagramming.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
ERwin.
Chapter 4: Part B Logical Database Design and the Relational Model
CSIS 115 Database Design and Applications for Business
Requirements Become the E-R Data Model
Database Design – Lecture 4
IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes.
CS 174: Server-Side Web Programming February 12 Class Meeting
Chapter 4 Entity Relationship (ER) Modeling
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database Processing: David M. Kroenke’s Chapter Five:
Entity-Relationship (E-R) Modeling
Presentation transcript:

E-R Model (2) IS 240 – Database Management Lecture #6 – Prof. M. E. Kabay, PhD, CISSP Norwich University

2 Copyright © 2004 M. E. Kabay. All rights reserved. Topics  Diagrams  Weak entities  Subtype entities  Developing the E-R model  Modeling user perceptions  Homework

3 Copyright © 2004 M. E. Kabay. All rights reserved. Diagrams EntityClass Maximum cardinality Entity1 HAS A Entity2 M:N Relationship Entity1–Entity2 1:N Crow’s feet N:1

4 Copyright © 2004 M. E. Kabay. All rights reserved. Diagrams (cont’d) 1:N Entity1–Entity2 Entity1 must have at least one Entity2 Entity2 may have No Entity1; or Entity2 must have 0 or 1 Entity1 1:N Entity3 Entity3 may include no or up to N other Entity3

5 Copyright © 2004 M. E. Kabay. All rights reserved. Diagrams (cont’d)  How can you create E-R diagrams?  CASE tools  PowerPoint  Other drawing programs  PowerPoint tools

6 Copyright © 2004 M. E. Kabay. All rights reserved. Hints for Working with PowerPoint  Use SlideView to access entire screen  Draw a symbol  set its line width, fill, and color  SET AUTOSHAPE DEFAULTS using right- click menu  Drag Flowchart and Connectors menus out of the AutoShapes menu – place at one side of screen  Use the Align or Distribute menu to arrange symbols

7 Copyright © 2004 M. E. Kabay. All rights reserved. Strong and Weak Entities  Strong entity can exist in a DB even if no other entities are linked to it; e.g.,  Customer may not have purchase  Student may have no classes  Professor may have no classes  Weak entity cannot exist in DB unless another entity exists; e.g.,  Purchase cannot exist without a customer and without an item  Class may not exist without a student or without a professor

8 Copyright © 2004 M. E. Kabay. All rights reserved. Weak Entities  Weak entities are shown in diagrams using a rounded-corner rectangle  ID-dependent entities  Compound identifier [entity1, entity2]; e.g., [Course,Section] [Class, TestNumber] [AutoMaker, PartNumber]  Differences of usage for term  Some designers look only at DB structure  Others look at logical relationships (see p. 57 for more detail)

9 Copyright © 2004 M. E. Kabay. All rights reserved. Subtype Entities  What if an entity has optional characteristics? E.g.,  Gender-specific organs and diseases  Social security number when customer is a company vs an individual  WheelDrive or Transmission for auto vs bicycle in Vehicle dataset  If all the possible attributes are defined for an entity-class, some attributes (fields) will be null  Can define subtype entities  Truck, auto, tractor, motorcycle, bicycle...  Male, female  Adult, child  Individual, company

10 Copyright © 2004 M. E. Kabay. All rights reserved. Diagramming Subtypes

11 Copyright © 2004 M. E. Kabay. All rights reserved. Showing Properties  Diagrams can show attributes (properties) of entities  See Fig 3-6, p. 56 for two styles (and next slides)  Each attribute shown in an oval attached to entity box or relationship diamond  Or provide a list of attributes in a rectangular table with text labels

12 Copyright © 2004 M. E. Kabay. All rights reserved. Properties Diagrams (1)

13 Copyright © 2004 M. E. Kabay. All rights reserved. Properties Diagrams (2)

14 Copyright © 2004 M. E. Kabay. All rights reserved. Developing the E-R Model  Designer must understand what the users do and want to do with the system  Include detailed analysis of business rules  Constraints on relationships; e.g., What determines if a professor is assigned a class? Are there prerequisites for classes? What are the prerequisites for a specific class?  Are there exceptions to these rules? Which?

15 Copyright © 2004 M. E. Kabay. All rights reserved. Modeling User Perceptions  Remember that the DB is not intended to model reality in the way a scientific model models the observable, objective world  Dealing with how human beings run their business  Analysts’ perceptions are secondary to users’ way of doing their work  But beware of paving the cowpath  If there is a better way of doing the job by using the DB, discuss it  E.g., just because a handwritten report uses old pre-printed forms does not mean that the DB system should use them

16 Copyright © 2004 M. E. Kabay. All rights reserved. Homework  For next Tueday, 17 Feb 2004  Study and review Chapter 3, pp  Pay particular attention to Examples 1 & 2 (Dance Club, Sailboat Charters)  For 14 points, answer questions and use PowerPoint or other computer- based tool to create your diagrams  By Tuesday, 24 Feb 2004, for 1 extra point each, do any or all of  Problems (up to 4 points)  Project A  Firedup Project questions A-E (up to 5 points)

17 Copyright © 2004 M. E. Kabay. All rights reserved. DISCUSSION