Chapter 11 Database Design

Slides:



Advertisements
Similar presentations
Chapter 5 Normalization of Database Tables
Advertisements

Chapter 5 Normalization of Database Tables
Logical Data Modeling Review Lecture for University of Agder, Grimstad DAT202 Databaser (5.5.11) Judith Molka-Danielsen
Modeling the Data: Conceptual and Logical Data Modeling
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
Chapter 5 Normalization of Database Tables
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
Database – Part 2a Dr. V.T. Raja Oregon State University.
NORMALIZATION N. HARIKA (CSC).
Database Architecture The Relational Database Model.
Chapter 5 Normalization of Database Tables
DBSQL 4-1 Copyright © Genetic Computer School 2009 Chapter 4 Database Design.
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
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.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
資料庫正規化 Database Normalization 取材自 AIS, 6 th edition By Gelinas et al.
CORE 2: Information systems and Databases NORMALISING DATABASES.
1 A Guide to MySQL 2 Database Design Fundamentals.
Chapter 13 Normalization Transparencies. 2 Chapter 13 - Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
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:
Lesson 2: Designing a Database and Creating Tables.
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
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.
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Microsoft Access 2010 Chapter 11 Database Design.
Southern Methodist University CSE CSE 2337 Introduction to Data Management Chapter 5 Part II.
SLIDE 1IS 257 – Fall 2006 Normalization Normalization theory is based on the observation that relations with certain properties are more effective.
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.
Database Design Chapters 17 and 18.
Logical Database Design and the Rational Model
Normalization.
A Guide to SQL, Eighth Edition
Revised: 2 April 2004 Fred Swartz
Relational Model.
SEEM3430: Information Systems Analysis and Design
Chapter 2: Relational Model
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
DESIGNING DATABASE APPLICATIONS
MIS 322 – Enterprise Business Process Analysis
Functional Dependencies
Chapter 9 Designing Databases
Relational Model and ER Model: in a Nutshell
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Order Database – ER Diagram
Concepts of Database Management Eighth Edition
Chapter 6 Normalization of Database Tables
Normalization – Part II
Normalization Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting.
Databases and Information Management
System Analysis and Design
Design tools and techniques for a relational database system
Entity-Relationship Diagram (ERD)
Chapter 17 Designing Databases
Chapter 14 Normalization Pearson Education © 2009.
Microsoft Access Date.
Shelly Cashman: Microsoft Access 2016
Conceptual Data Modeling
Database Design Chapter 7.
Presentation transcript:

Chapter 11 Database Design Microsoft Access 2013 Chapter 11 Database Design

Entities, Attributes, and Relationships An entity is like a noun: it is a person, place, thing, or event An attribute is a property of an entity A relationship is an association between entities Database Design

Relational Databases The formal term for a table is relation Each column in a table should have a unique name, and entries in each column should match this column name A relation is a two-dimensional table in which: The entries in the table are single-valued; that is, each location in the table contains a single entry Each column has a distinct name, technically called the attribute name (Field Name) All values in a column are values of the same attribute; that is, all entries must correspond to the column name Each row is distinct; that is, no two rows are identical Database Design

Relational Databases – Mistakes Database Design

Relational Databases A relational database is a collection of relations Rows in a table (relation) often are called records or tuples Columns in a table (relation) often are called fields or attributes To depict the structure of a relational database, you can use a commonly accepted shorthand representation Database Design

Relational Databases Shorthand Representation Database Design

Relational Databases If you know that whenever you are given a value for one field, you will be able to determine a single value for a second field, the first field is said to determine the second field The second field is said to be functionally dependent on the first Database Design

Relational Databases - Determine Database Design

Relational Databases The primary key of a table is the field or minimum collection of fields — the fewest number of fields possible — that uniquely identifies a given row in that table Database Design

Database Design Process Examine the requirements and identify the entities, or objects, involved Identify a unique identifier for each entity Identify the attributes for all the entities Identify the functional dependencies that exist among the attributes Use the functional dependencies to identify the tables Determine and implement relationships among the entities One-to-many Many-to-many One-to-one Database Design

Normalization After you create your database design, you should analyze it using a process called normalization to make sure the design is free of potential update, redundancy, and consistency problems The normalization process involves converting tables into various types of normal forms A table that contains a repeating group, or multiple entries for a single row, is called an unnormalized table Database Design

Normalization Database Design

Conversion to First Normal Form In general, when converting a non-1NF table to 1NF, the primary key typically will include the original primary key concatenated with the key of the repeating group, that is, the field that distinguishes one occurrence of the repeating group from another within a given row in the table Database Design

Conversion to First Normal Form Database Design

Second Normal Field A table (relation) is in second normal form (2NF) if it is in first normal form and no nonkey field is dependent on only a portion of the primary key Database Design

Second Normal Form Database Design

Conversion to Second Normal Form Database Design

Third Normal Form A table is in third normal form (3NF) if it is in second normal form and if the only determinants it contains are candidate keys Any field or collection of fields that determines another field is called a determinant Database Design

Conversion to Third Normal Form Database Design

Obtaining Information from Existing Documents Existing documents can often furnish helpful information concerning the database design You need to know how to obtain information from the document that you will then use in the design process Database Design

Obtaining Information from Existing Documents Database Design

Normalization Example = TAL Distributors Unnormalized Table: ORDERS (ORDER#, ORDATE, CUS#, CUSTNAME, ADDRESS, REP#, FNAME, LNAME, ITEM#, DESC, NUMORDERED, PRICE, TOTAL, ORDER TOTAL) Example Data Record: 12617, 4/12/2012, 462, Walburg Energy Alternatives, 12 Polk, 65, Juan Perez, BV06, Energy Savings Kit, 2, 40.25, 80.50, CD52, Fluorescent Light Bulb, 20, 4.25, 85.00 165.00 Database Design

Normalization Example = TAL Distributors Convert to 1NF, Eliminate Repeating Groups ORDERS (ORDER#, ORDATE, CUS#, CUSTNAME, ADDRESS, REP#, FNAME, LNAME, ITEM#, DESC, NUMORDERED, PRICE, TOTAL, ORDER TOTAL) Example Data Records: 12617, 4/12/2012, 462, Walburg Energy Alternatives, 12 Polk, 65, Juan Perez, BV06, Energy Savings Kit, 2, 40.25, 80.50, 165.00 12617, 4/12/2012, 462, Walburg Energy Alternatives, 12 Polk, 65, Juan Perez, CD52, Florescent Light Bulb, 20, 4.25, 85.00, 165.00 Dependency Diagram: Database Design

Normalization Example = TAL Distributors 2NF – No nonkey field is dependent on only a portion of the primary key. ORDERS (ORDER#, ORDATE, CUS#, CUSTNAME, ADDRESS, REP#, FNAME, LNAME, ORDER TOTAL) 12617, 4/12/2012, 462, Walburg Energy Alternatives, 12 Polk, 65, Juan Perez, 165.00 LINE ITEM (ORDER#, ITEM#, NUMORDERED, TOTAL) 12617, BV06, 2, 80.50 12617, CD52, 20, 85.00 PART (ITEM#, DESC, PRICE) BV06, Energy Savings Kit, 40.25 CD52, Florescent Light Bulb, 4.25 Database Design

Normalization Example = TAL Distributors 3NF – Remove nonkey determinants ORDERS (ORDER#, ORDATE, CUS#, ORDER TOTAL) 12617, 4/12/2012, 462, 165.00 CUSTOMER (CUS#, CUSTNAME, ADDRESS, REP#) 462, Walburg Energy Alternatives, 12 Polk, 65 REP (REP#, FNAME, LNAME) 65, Juan Perez LINE ITEM (ORDER#, ITEM#, NUMORDERED, TOTAL) 12617, BV06, 2, 80.50 12617, CD52, 20, 85.00 PART (ITEM#, DESC, PRICE) BV06, Energy Savings Kit, 40.25 CD52, Florescent Light Bulb, 4.25 Database Design

Diagrams for Database Design

Diagrams for Database Design

Entity-Relationship Diagrams (ERD) Database Design

Entity-Relationship Diagrams (ERD) Database Design

Microsoft Access 2013 Chapter 11 Complete