Entity-Relationship Model and Diagrams (continued)

Slides:



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

Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Accounting System Design
Database Development Cycle Track 3: Managing Information Using Database.
Modeling the Data: Conceptual and Logical Data Modeling
Concepts of Database Management Sixth Edition
Database Design & Mapping
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Lecture Fourteen Methodology - Conceptual Database Design
Modeling & Designing the Database
APPENDIX C DESIGNING DATABASES
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Introduction to Databases
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
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.
Web-Enabled Decision Support Systems
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Methodology Conceptual Databases Design
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
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.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
Methodology: Conceptual Databases Design
Team Dosen UMN Database Design Connolly Book Chapter
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
Methodology - Conceptual Database Design
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Relational Database. Database Management System (DBMS)
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IE 423 – Design of Decision Support Systems Data modeling and database development.
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.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
Relational Theory and Design
Databases Illuminated Chapter 3 The Entity Relationship Model.
Database Design – Lecture 4 Conceptual Data Modeling.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
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.
1 Database Systems Entity Relationship (E-R) Modeling.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Data Modeling AND ER MODELS.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Entity-Relationship Model and Diagrams (continued)
Database Development Cycle
Presentation transcript:

Entity-Relationship Model and Diagrams (continued) Todd S. Bacastow IST 210 Organization of data

Database Design Conceptual design Logical design Physical design Entity-Relationship Model Logical design Logical Schema Physical design

Critical Success Factors in Database Design Work interactively with the users as much as possible Follow a methodology throughout the data modeling process Incorporate structural and integrity considerations into the data models Combine conceptualization, normalization, and validation techniques into the methodology

Conceptual Design Phase

ERD as a “Semantic Model” Semantics: Relationships between symbols and their meanings. A semantic model attempts to capture the meaning of user's information and provide a concise, high-level description of that information. The information is represented by logical associations (relations) between pairs of objects and by the classification of objects into categories (entities).

Entity, Attribute, Relationship Name Address Numb CLIENT PASSPORT Exp A client must have a passport Each client has only one passport A client may have one or more itinerates An itinerary belongs to one client ITINERARY Date city

Basic relationships One-to-One One-to-Many Many-to-Many HUSBAND WIFE A husband has one wife A wife has one husband One-to-Many TEAM PARTICIPANT A team has many participants Many participants belong to one team Many-to-Many EMPLOYEE SKILL An employee has many skills Many employees have the same skill

Exercise Business rules: A university where a student may take many courses employs lecturers. Each lecturer teaches one or more courses but no course is taught by more than one lecturer. Each student has to complete two or three assignments for each course. Requirement: Draw an entity relationship (ER) diagram for the situation described.

Solution

Review Use ER Diagrams to help understand The essential information Visual guide to the organization Plan for how to proceed Improve database design

Logical design phase Conceptual E-R Model 1. REFINE THE CONCEPTUAL MODEL Refined Conceptual Model 2.APPLY THE RULES OF NORMALIZATION Logical Data Model

The Next Step Going from this: To this: Table1 Table2 Table3 Table4

Logical Database Design Main objectives of relational databases is to ensure that each item of data is held only once within the database: Minimize the amount of storage space Simplify updating procedures Ensure that data is accurate Done by converting ERD into well-structured relational data model

Relational Data Model E-R Model helps to define the underlying tables CUSTOMER CUSTOMER receive INVOICE INVOICE

Converting ERD to tables Convert each of the entities (E1 & E2) in to a table. The attributes of the entity become attributes of the table. Convert each relationship (R1) with a many-to-many cardinality in to a table. The primary keys of the entities (E1 & E2) linked by the relationship and attributes of the relationship A1 become attributes of the resulting table. Do not convert relationships (R1) with one-to-many or one-to-one cardinality in to a table. For a one-to-one relationship, add the attributes of the relationship (A1) and the primary key of either table (T1 or T2) into the other table (T1 or T2). For a one-to-many relationship, add the attributes of the relationship (A1) and the primary key to the other table. Relationship1 R1 Entity 1 E1 Entity 2 E2 A1

Fields and Records Field: a single column of information in a table Appears as an attribute in the ERD Key: a field which uniquely identifies each record in a field Field Key

Fields and Records Foreign Key Foreign Key: links tables by referencing a key in another table Tuple: the full set of information about one occurrence of the entity All information included in a single row of the table Tuple

Review The key conversion tasks are: Create entity tables Resolve relationships Resolve multi-valued and composite attributes Insert primary and foreign keys Normalize to Third Normal Form (we will talk about this next time) Integrity constraints

Review Relations Just another name for a table Every relation has a unique name Every attribute value is atomic Every row is unique Attributes in tables have unique names The order of the columns is irrelevant The order of the rows is irrelevant