Principles of Database Design, Part II AIMS 2710 R. Nakatsu.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Entity Relationship (E-R) Modeling Hachim Haddouti
ERD diagram Data Design - Mr. Ahmad Al-Ghoul
Chapter 4 Entity Relationship (E-R) Modeling
IT420: Database Management and Organization
Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Databases Revision.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Entity-Relationship Model and Diagrams (continued)
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.
Entity Relationship Diagrams
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.
System Analysis and Design
Entity-Relationship Model
APPENDIX C DESIGNING DATABASES
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
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 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
ICOM 5016 – Introduction to Database Systems Lecture 4 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
PLUG IT IN 3 Fundamentals of Relational Database Operations.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
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,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Description and exemplification of entity-relationship modelling.
Relational Theory and Design
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
Lesson 2: Designing a Database and Creating Tables.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
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.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Logical Database Design and the Relational Model.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Database Relationships Objective 5.01 Understand database tables used in business.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Tables and Their Characteristics
Database Design – Lecture 4
Presentation transcript:

Principles of Database Design, Part II AIMS 2710 R. Nakatsu

Entity-Relationship (ER) Modeling ER Modeling is the process of creating a diagram of the structure of the database by defining entities and relations among them.  The ER model serves as the basic database blueprint.  The ER model can be used as a communication tool.

ER Model Components n An entity is represented by a rectangle containing the entity’s name. An entity corresponds to a table in the relational environment. n A relationship is an association between entities. It is represented by a line connecting the two entities. n Cardinality expresses the specific number of entity occurrences associated with the related entity.

Relationships Types of Relationships n One-to-One e.g., one dean to one university one head-of-state to one country n One-to-Many e.g., one painter paints many paintings one customer places many orders n Many-to-Many e.g., students enroll in courses

ER Diagrams with Crow’s Foot Notation and Cardinalities

ER Diagram Problem n Acme Insurance Company is made up of several divisions. A claims adjuster is always assigned to one and only one division. n Claims adjusters work on several insurance claims. Each insurance claim is always worked on by a team of at least two but no more than five claims adjusters. n Each claims adjuster is assigned to his/her own company car (no claims adjuster needs to “share” a car). A claims adjuster may elect not to be assigned to a company car. Furthermore, some of company cars are “unassigned”—Acme likes to keep a few spare cars in inventory just in case. Draw the ER Diagram for this situation. Note: a claims adjuster is an employee who investigates and processes insurance claims.

Database Systems, 9th Edition 7 Another ERD Notation

Linking Tables: 1:Many and 1:1 In a one-to-one and one-to-many link, you link a primary key in one table to a foreign key in another table. For a one-to-one relationship, the foreign key must be unique (in Access you set the Index value to Yes (No Duplicates). Referential Integrity: A condition in which a child table’s foreign key must have either a null entry or a matching entry in the related parent table.

Linking Tables: Many-to-Many n For many-to-many relationships, you must create a separate intersection table to handle the relationship. n Access will not let you define a many-to-many relationship directly between two tables. n The primary key of the intersection table is a composite primary key. n Two one-to-many relationships are created.