Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property.

Slides:



Advertisements
Similar presentations
Entity Relationship (ER) Modeling
Advertisements

Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Methodology Logical Database Design for the Relational Model
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Transforming Data Models into Database Designs
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Entity-Relationship Design
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
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
Chapter 5 Entity–Relationship Modeling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
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 
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
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 Chapter 17 Methodology - Local Logical Database Design.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Methodology - Logical Database Design. 2 Step 2 Build and Validate Local Logical Data Model To build a local logical data model from a local conceptual.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
AOIT Database Design Unit 3, Lesson 9 Data Integrity Copyright © 2009–2011 National Academy Foundation. All rights reserved.
Entity Relationship (E-R) Model
Logical Database Design and the Rational Model
Understanding Data Storage
Tables & Relationships
Chapter 5 Database Design
Methodology Logical Database Design for the Relational Model
TMC2034 Database Concept and Design
Relational Database Design by ER- and EER-to- Relational Mapping
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
Chen’s Type Guidance.
CSIS 115 Database Design and Applications for Business
Tables and Their Characteristics
Database Design – Lecture 4
CIS 155 Table Relationship
Lecture 2 The Relational Model
Referential Integrity
Chapter 9 Designing Databases
Data Modelling Introduction
Relational Database.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Referential Integrity
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Data Modeling for Database Design 2
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Review of Week 1 Database DBMS File systems vs. database systems
ITEC 3220A Using and Designing Database Systems
Chapter 4 Entity Relationship (ER) Modeling
Guide to Modeling Keys to E-R diagrams.
Guide to Modeling Keys to E-R diagrams.
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Entity-Relationship Design
Presentation transcript:

Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property of some other entity Not a derived quantity (like a report)

Finding Entities List things described in a business narrative List things that are read from or written to in the process analysis of the system Describe a record (occurrence) by listing the attributes it has Be certain you need to store data

Relationships Relationships connect a record in one entity to one or more records in another entity (A recursive relationship connects a record to records in the same entity) Relationships connect records (occurrences) not entities Relationships do not change anything (they are not processes)

Determining Relationships Describe connections: has a, orders a, contains a, etc. on a common report page, line, etc. Connect records, not attributes Can be described by a passive phrase Do not describe a change in values

Cardinality How many records could be connected to this one? Two sided test.

1:N

M:N Associations Associations with data Associations that occur more than once

ATTRIBUTE: A description or property of a given entity type. Must depend on the entity key alone Must contain information that we explicitly need Must have the same data type for all entity occurrences

TYPES OF ATTRIBUTES: Composite or Simple (atomic) Single valued or Multivalued (repeating group) Relational database models cannot represent multivalued attributes but objects and structured databases can. Repeating groups (sets of related multivalued attributes) usually represent entities or subclasses.

Optionality (Referential Integrity) Records in a table that have a relationship with another table may be restricted by optionality requirements. Relationship Optional Relationship Mandatory (referential integrity enforced)

Optionality A constraint should be mandatory only if the relationship must be known whenever a record is first entered. Most relationships are optional.

Maintaining Integrity If a parent record is deleted then an optionality relationships can be maintained in several ways Cascade delete Cascade update Cascade null

Typical Patterns Simple “Ownership” Product Order Appointment Journal Entry Component Parts