1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.

Slides:



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

Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
The Relational Database Model
Concepts of Database Management Sixth Edition
System Analysis - Data Modeling
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
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Concepts of Database Management Sixth Edition
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.
Entity-Relationship Model and Diagrams (continued)
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
1 1 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 1 Introduction to Database Management.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Concepts of Database Management Seventh Edition
Chapter 8 Structuring System Data Requirements
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
Chapter 6 Developing Data Models for Business Databases.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 4 The Relational Model.
Concepts of Database Management Seventh Edition
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
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.
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.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Concepts of Database Management Sixth Edition Chapter 5 Database Design 1: Normalization.
Concepts of Database Management, Fifth Edition
1 A Guide to MySQL 2 Database Design Fundamentals.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
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.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Relational Theory and Design
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.
Concepts of Database Management Seventh Edition Chapter 5 Database Design 1: Normalization.
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 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
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.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
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.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Data Modeling AND ER MODELS.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
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.
A Guide to SQL, Eighth Edition
Concepts of Database Management Seventh Edition
Methodology Conceptual Databases Design
Presentation transcript:

1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology

2 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Objectives u Discuss the general process and goals of database design u Define user views and explain their function u Define database design language and use it to document database designs u Create an entity-relationship diagram to visually represent a database design u Present a methodology for database design at the information level and view examples illustrating this methodology

3 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Objectives u Explain the physical-level design process u Examine some alternative approaches to entity-relationship diagrams u Discuss top-down and bottom-up approaches to database design and examine the advantages and disadvantages of both methods u Use a survey form to obtain information from users prior to beginning the database design process

4 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Objectives u Review existing documents to obtain information from users prior to beginning the database design process u Discuss special issues related to implementing one-to-one relationships and many-to-many relationships involving more than two entities u Discuss entity subtypes and their relationships to nulls u Learn how to avoid potential problems when merging third normal form relations

5 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Database Design u User Views l Requirements necessary to support a particular user’s operations u Information-level Design Methodology l Represent user view as collection of tables l Normalize these tables l Identify all keys l Merge the result into design

6 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Represent User View as Collection of Tables Step 1: Determine entities involved and create separate table for each type Step 2: Determine primary key for each table Step 3: Determine properties for each entities Step 4: Determine relationships among entities

7 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Normalize the Tables u Represent all keys l Primary, alternate, secondary, foreign u Database Design Language (DBDL) l Mechanism for representing tables and keys

8 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski DBDL Notation u Table name followed by columns in parentheses l Primary key column(s) underlined u AK identifies alternate keys u SK identifies secondary keys u FK identifies foreign keys

9 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Entity-Relationship Diagrams Figure 6.2

10 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Merge the Result into the Design Figure 6.3

11 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski User View Examples View #1: Sales Rep View Rep (RepNum, LastName, FirstName, Street, City, State, Zip, Commission, Rate)

12 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski User View Examples (con’t.) Figure 6.5 View #2: Customer View

13 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski User View Examples (con’t.) Figure 6.6 View #3: Part View

14 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski User View Examples (con’t.) Figure 6.8 View #4: Order View

15 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Second Set User View Examples View #1: Publisher View Publisher (PublisherCode, PublisherName, City) SK PublisherName

16 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Second Set User View Examples (con’t.) View #2: Branch View Publisher (PublisherCode, PublisherName, City) SK PublisherName Branch (BranchNum, BranchName, BranchLocation, NumEmployees) SK BranchName

17 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Second Set User View Examples (con’t.) Figure 6.11 View #3: Book View

18 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Second Set User View Examples (con’t.) Figure 6.12 View #4: Author View

19 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Second Set User View Examples (con’t.) Figure 6.13 View #5 and View #6: Inventory View

20 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Physical-Level Design u Undertaken after information-level design completion u Most DBMSs support primary, candidate, secondary, and foreign keys u DB programmers must include logic to ensure the uniqueness of primary keys and enforce other conditions

21 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski ERD Relationship Alternative Figure 6.14

22 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Symbols for Columns Figure 6.15

23 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Composite Entity Figure 6.16

24 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Crow’s Foot Symbol Figure 6.17

25 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Representing Cardinality Figure 6.18

26 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Top-Down vs. Bottom-Up u Bottom-up l Design starts at low level l Specific user requirements drive design process u Top-down l Begins with general database that models overall enterprise l Refines the model until design is achieved

27 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Survey Form u Used to collect information from users u Must contain particular elements l Entity information l Attribute information l Relationships l Functional dependencies l Processing information

28 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Existing Documents u Aid in collecting user requirements u Collect information similar to that collected with survey forms l Entity information l Attribute information l Relationships l Functional dependencies l Processing information

29 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski 1:1 Relationship Considerations Figure 6.25 Include primary key of each table as foreign key in the other

30 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski 1:1 Relationship Considerations Figure 6.26 Implementation when information does not match.

31 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski 1:1 Relationship Considerations Figure 6.27 Implemented in a single table.

32 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski 1:1 Relationship Considerations Figure :1 relationship implemented by including primary key of one table as foreign key (and alternative key) in the other.

33 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski M:M Relationship Considerations Figure 6.29 Sample Sales Data

34 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski M:M Relationship Considerations Figure 6.30 Result obtained by splitting Sales table into three tables

35 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski M:M Relationship Considerations Figure 6.31 Result obtained by joining three tables--2 rows are in error. Must be converted to 4NF.

36 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Table Split to Avoid Nulls Figure 6.32 Nulls are absence of values

37 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Entity Subtypes Figure 6.34

38 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Student Table Split to Avoid Nulls Figure 6.36

39 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Two Entity Subtypes— Incomplete Categories Figure 6.37

40 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Two Entity Subtypes— Complete Categories Figure 6.38