Concepts of Database Management Sixth Edition

Slides:



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

Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 5/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
De-normalize if… Performance is unsatisfactory Table has a low update rate –(sacrifice flexibility) Table has a high query rate –(speed up retrieval)
Concepts of Database Management Sixth Edition
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Concepts of Database Management Sixth Edition
1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
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.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Chapter 3: Modeling Data in the Organization
Concepts of Database Management Seventh Edition
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Entity-Relationship modeling Transparencies
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.
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Chapter 5 Entity–Relationship Modeling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Concepts of Database Management Eighth Edition Chapter 6 Database Design 2: Design Method.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Data Modeling IST210 Class Lecture.
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.
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)
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Relational Theory and Design
Databases Illuminated Chapter 3 The Entity Relationship Model.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Concepts of Database Management Seventh Edition Chapter 6 Database Design 2: Design Method.
1 © Prentice Hall, 2002 ITD1312 Database Principles Chapter 4B: Logical Design for Relational Systems -- Transforming ER Diagrams into Relations Modern.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
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.
Microsoft Access 2010 Chapter 11 Database Design.
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.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Concepts of Database Management Seventh Edition
Presentation transcript:

Concepts of Database Management Sixth Edition Chapter 6 – Part 2 Database Design 2: Design Method

Objectives Discuss special issues related to implementing one-to-one relationships and many-to-many relationships involving more than two entities Discuss entity subtypes and their relationships to nulls Learn how to avoid potential problems when merging third normal form relations Examine the entity-relationship model for representing and designing databases Concepts of Database Management

One-to-One Relationship Considerations Simply including the primary key of each table as a foreign key in the other table No guarantee that the information will match One solution: create a single table Workable, but not the best solution Better solution Create separate tables for customers and sales reps Include the primary key of one of them as a foreign key in the other Concepts of Database Management

One-to-One Relationship Considerations (continued) FIGURE 6-23: One-to-one relationship implemented by including the primary key of one table as the foreign key (and alternate key) in the other table Concepts of Database Management

Many-to-Many Relationship Considerations Complex issues arise when more than two entities are related in a many-to-many relationship Many-to-many-to-many relationship: involves multiple entities Deciding between a single many-to-many-to-many relationship and two (or three) many-to-many relationships Crucial issue: independence Concepts of Database Management

Many-to-Many Relationship Considerations (continued) FIGURE 6-25: Result obtained by splitting the Sales table into three tables Concepts of Database Management

Many-to-Many Relationship Considerations (continued) FIGURE 6-26: Result obtained by joining three tables—the second and third rows are in error! Concepts of Database Management

Nulls and Entity Subtypes Special value Represents absence of a value in a field Used when a value is unknown or inapplicable Splitting tables to avoid use of null values Entity subtype: table that is a subtype of another table Concepts of Database Management

Nulls and Entity Subtypes (continued) FIGURE 6-27: Student table split to avoid use of null values Concepts of Database Management

Nulls and Entity Subtypes (continued) Subtype called a category in IDEF1X terminology Incomplete category: records that do not fall into the subtype Complete categories: all records fall into the categories Concepts of Database Management

Nulls and Entity Subtypes (continued) FIGURE 6-29: Entity subtype in an E-R diagram Concepts of Database Management

Nulls and Entity Subtypes (continued) FIGURE 6-32: Two entity subtypes—incomplete categories Concepts of Database Management

Nulls and Entity Subtypes (continued) FIGURE 6-33: Two entity subtypes—complete categories Concepts of Database Management

Avoiding Problems with Third Normal Form When Merging Tables When combining third normal form tables, the result might not be in third normal form Be cautious when representing user views Always attempt to determine whether determinants exist and include them in tables Concepts of Database Management

The Entity-Relationship Model An approach to representing data in a database Entities are drawn as rectangles Relationships are drawn as diamonds with lines connecting the entities involved in relationships Composite entity: exists to implement a many-to-many relationship Existence dependency: existence of one entity depends on the existence of another related entity Weak entity: depends on another entity for its own existence Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-34: One-to-many relationship Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-35: Many-to-many relationship Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-36: Many-to-many-to-many relationship Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-37: One-to-many relationship with attributes added Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-38: Many-to-many relationship with attributes Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-39: Composite entity Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-40: Complete E-R diagram for the Premiere Products database Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-41: E-R diagram with an existence dependency and a weak entity Concepts of Database Management

The Entity-Relationship Model (continued) Cardinality: number of items that must be included in a relationship An entity in a relationship with minimum cardinality of zero plays an optional role in the relationship An entity with a minimum cardinality of one plays a mandatory role in the relationship Concepts of Database Management

The Entity-Relationship Model (continued) FIGURE 6-43: E-R diagram that represents cardinality Concepts of Database Management

Summary Database design is a two-part process: information-level design (not dependent on a particular DBMS), and physical-level design (appropriate for the particular DBMS being used) User view: set of necessary requirements to support a particular user’s operations Information-level design steps for each user view: represent the user view as a collection of tables, normalize these tables, represent all keys (primary, alternate, secondary, and foreign), and merge the results into the cumulative design Concepts of Database Management

Summary (continued) Database design is represented in Database Design Language (DBDL) Designs can be represented visually using entity-relationship (E-R) diagrams Physical-level design process consists of creating a table for each entity in the DBDL design Design method presented in this chapter is bottom-up Survey form useful for documenting the information gathered for database design process Concepts of Database Management

Summary (continued) To obtain information from existing documents, list all attributes present in the documents, identify potential functional dependencies, make a tentative list of tables, and use the functional dependencies to refine the list To implement a one-to-one relationship, include primary key of one table in the other table as a foreign key and indicate the foreign key as an alternate key Concepts of Database Management

Summary (continued) If a table’s primary key consists of three (or more) columns, determine whether there are independent relationships between pairs of these columns If a table contains columns that can be null and the nulls mean that the column is inapplicable for some rows, you can split the table, placing the null column(s) in separate tables The result of merging third normal form tables may not be in third normal form Entity-relationship (E-R) model represents the structure of a database using an E-R diagram Concepts of Database Management