Concepts of Database Management Sixth Edition

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
The Relational Database Model
The Relational Model System Development Life Cycle Normalisation
Concepts of Database Management Sixth Edition
De-normalize if… Performance is unsatisfactory Table has a low update rate –(sacrifice flexibility) Table has a high query rate –(speed up retrieval)
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
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.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Concepts of Database Management Seventh Edition
Chapter 8 Structuring System Data Requirements
Methodology Conceptual Database Design
Modeling & Designing the Database
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.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Concepts of Database Management Seventh Edition
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts of Database Management Eighth Edition
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
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.
Methodology Conceptual Databases Design
Relational DB Components
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
1 A Guide to MySQL 2 Database Design Fundamentals.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Methodology: Conceptual Databases Design
1 A Guide to MySQL 2 Database Design Fundamentals.
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.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Slide Chapter 5 The Relational Data Model and Relational Database Constraints.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
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.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
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.
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.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
© 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.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
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.
Chapter 4: Logical Database Design and the Relational Model
Concepts of Database Management Seventh Edition
Copyright © 2018, 2015, 20 Pearson Education, Inc. All Rights Reserved Database Concepts Eighth Edition Chapter # 2 The Relational Model.
Presentation transcript:

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

Objectives Discuss the general process and goals of database design Define user views and explain their function Define Database Design Language (DBDL) and use it to document database designs Create an entity-relationship (E-R) diagram to visually represent a database design Present a method for database design at the information level and view examples illustrating this method Concepts of Database Management

Objectives (continued) Explain the physical-level design process Discuss top-down and bottom-up approaches to database design and examine the advantages and disadvantages of both methods Use a survey form to obtain information from users prior to beginning the database design process Review existing documents to obtain information prior to beginning the database design Concepts of Database Management

Introduction Two-step process for database design Information-level design: completed independently of any particular DBMS Physical-level design: information-level design adapted for the specific DBMS that will be used Must consider characteristics of the particular DBMS Concepts of Database Management

User Views User view: set of requirements necessary to support operations of a particular database user Cumulative design: supports all user views encountered during design process Concepts of Database Management

Information-Level Design Method For each user view: Represent the user view as a collection of tables Normalize these tables Identify all keys in these tables Merge the result of Steps 1 through 3 into the cumulative design Concepts of Database Management

Represent the User View As a Collection of Tables Step 1: Determine the entities involved and create a separate table for each type of entity Step 2: Determine the primary key for each table Step 3: Determine the properties for each entity Step 4: Determine relationships between the entities One-to-many Many-to-many One-to-one Concepts of Database Management

Represent the User View As a Collection of Tables (continued) One-to-many relationship: include primary key of the “one” table as a foreign key in the “many” table Many-to-many relationship: create a new table whose primary key is the combination of the primary keys of the original tables One-to-one relationship: simplest implementation is to treat it as a one-to-many relationship Concepts of Database Management

Normalize the Tables Normalize each table Target is third normal form Careful planning in early phases of the process usually rules out need to consider fourth normal form Concepts of Database Management

Identify All Keys For each table, identify: Primary key Alternate keys Secondary keys Foreign keys Alternate key: column(s) that could have been chosen as a primary key but was not Secondary keys: columns of interest strictly for retrieval Concepts of Database Management

Identify All Keys (continued) Foreign key: column(s) in one table that is required to match value of the primary key for some row in another table or is required to be null Used to create relationships between tables Used to enforce certain types of integrity constraints Concepts of Database Management

Types of Primary Keys Natural key: consists of a column that uniquely identifies an entity Also called a logical key or an intelligent key Artificial key: column created for an entity to serve solely as the primary key and that is visible to users Surrogate key: system-generated; usually hidden from users Also called a synthetic key Concepts of Database Management

Database Design Language (DBDL) Table name followed by columns in parentheses Primary key column(s) underlined AK identifies alternate keys SK identifies secondary keys FK identifies foreign keys Foreign keys followed by an arrow pointing to the table identified by the foreign key Concepts of Database Management

Database Design Language (DBDL) (continued) FIGURE 6-1: DBDL for the Employee table Concepts of Database Management

Entity-Relationship (E-R) Diagrams Visually represents database structure Rectangle represents each entity Entity’s name appears above the rectangle Primary key for each entity appears above the line in the entity’s rectangle Other columns of entity appear below the line in rectangle Concepts of Database Management

Entity-Relationship (E-R) Diagrams (continued) Letters AK, SK, and FK appear in parentheses following the alternate key, secondary key, and foreign key, respectively For each foreign key, a line leads from the rectangle for the table being identified to the rectangle for the table containing the foreign key Concepts of Database Management

Entity-Relationship (E-R) Diagrams (continued) FIGURE 6-2: E-R diagram Concepts of Database Management

Merge the Result into the Design Combine tables that have the same primary key to form a new table New table: Primary key is same as the primary key in the tables combined Contains all the columns from the tables combined If duplicate columns, remove all but one copy of the column Make sure new design is in third normal form Concepts of Database Management

Merge the Result into the Design (continued) FIGURE 6-3: Information-level design method Concepts of Database Management

Database Design Examples Develop an information-level design Company stores information about sales reps, customers, parts, and orders User view requirements Constraints FIGURE 6-4: Cumulative design after first user view Concepts of Database Management

Database Design Examples (continued) FIGURE 6-6: Cumulative design after third user view Concepts of Database Management

Database Design Examples (continued) FIGURE 6-8: Final information-level design Concepts of Database Management

Database Design Examples (continued) Henry Books database: information about branches, publishers, authors, and books User view requirements FIGURE 6-9: DBDL for Book database after first user view Concepts of Database Management

Database Design Examples (continued) FIGURE 6-10: DBDL for Book database after second user view Concepts of Database Management

Database Design Examples (continued) FIGURE 6-13: Cumulative design after fifth user view Concepts of Database Management

Physical-Level Design Undertaken after information-level design completion Most DBMSs support primary, candidate, secondary, and foreign keys To enforce restrictions, DB programmers must include logic in their programs Concepts of Database Management

Top-Down Versus Bottom-Up Bottom-up design method Design starts at low level Specific user requirements drive design process Top-down design method Begins with general database that models overall enterprise Refines model until design supports all necessary applications Concepts of Database Management

Survey Form Used to collect information from users Must contain particular elements Entity information Attribute (column) information Relationships Functional dependencies Processing information Concepts of Database Management

Obtaining Information from Existing Documents Existing documents can furnish information about database design Identify and list all columns and give them appropriate names Identify functional dependencies Determine the tables and assign columns Concepts of Database Management

Obtaining Information from Existing Documents (continued) FIGURE 6-14: Invoice for Holt Distributors Concepts of Database Management

Obtaining Information from Existing Documents (continued) FIGURE 6-15: List of possible attributes for the Holt Distributors invoice Concepts of Database Management

Obtaining Information from Existing Documents (continued) FIGURE 6-17: Revised list of functional dependencies for the Holt Distributors invoice Concepts of Database Management

Obtaining Information from Existing Documents (continued) FIGURE 6-19: Expanded list of entities Concepts of Database Management