Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.

Slides:



Advertisements
Similar presentations
Chapter 4 Database Processing. Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship.
Advertisements

Database Design Chapter Extension 4. ce4-2 Study Questions Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall Q1: Who will volunteer?
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module C Designing Databases and Entity-Relationship.
IT420: Database Management and Organization
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 5 Database Processing.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Concepts of Database Management Sixth Edition
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples Instructor: Dragomir R. Radev Fall 2005.
Database Processing Chapter 4.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Concepts of Database Management Seventh Edition
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
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.
Chapter 5 Database Processing.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
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.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Data Modeling and Entity-Relationship Model I
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 10 Structuring System Requirements: Conceptual Data Modeling
CSIS 115 Database Design and Applications for Business
Application Extension 5a
Database Development Lifecycle
Data Modeling and the Entity-Relationship Model
Methodology Conceptual Databases Design
TMC2034 Database Concept and Design
Methodology Conceptual Database Design
Tables and Their Characteristics
CSCI-100 Introduction to Computing
Copyright © 2015 Pearson Education, Inc.
Chapter 3 The Relational Database Model
Order Database – ER Diagram
Accounting System Design
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Data Modeling and the Entity-Relationship Model
Accounting System Design
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 4 Entity Relationship (ER) Modeling
Database Processing: David M. Kroenke’s Chapter Five:
Entity-Relationship Diagram (ERD)
Data Modeling and the Entity-Relationship Model
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Presentation transcript:

Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology

Copyright © 2014 Pearson Canada Inc. 5-2 Study Questions 1. Who will volunteer? 2. How are database application systems developed? 3. What are the components of the entity- relationship data model? 4. How is a data model transformed into a database design? 5. What is the user’s role? 6. Who will volunteer (continued)?

Copyright © 2014 Pearson Canada Inc. 5-3 Who Will Volunteer? Fundraising manager needs database to: Find volunteers Track volunteers how many years effectiveness personal information

Copyright © 2014 Pearson Canada Inc. 5-4 How Are Database Application Systems Developed? Database application system consists of: Database DBMS One or more database applications Database application consists of: Forms Reports Queries Application programs

Copyright © 2014 Pearson Canada Inc. 5-5 Database Development Process

Copyright © 2014 Pearson Canada Inc. 5-6 Database Application System Development Process Developers interview users Develop requirements for new system Analyze existing reports, forms, and user activities Requirements summarized in data model Logical representation of structure of data Contains description of data and relationships Users validate and approve the data model Design implemented in a database Database filled with user data

Copyright © 2014 Pearson Canada Inc. 5-7 Database Must include all data necessary for users to perform jobs Contains only that amount of data, and no more Developers rely on users to: Tell them what to include Check data model Verify correctness and completeness

Copyright © 2014 Pearson Canada Inc. 5-8 What Are the Components of the Entity-Relationship Data Model? Techniques for creating data model Entity-relationship (E-R) data model Unified Modeling Language (UML) E-R data model components Entities (things) stored in the database Relationships among those entities

Copyright © 2014 Pearson Canada Inc. 5-9 Entities Some thing that users want to track e.g., Order, Customer, Salesperson, and Item May be: Physical object (e.g., Item or Salesperson) Logical construct or transaction (e.g., Order or Contract) Entity names are always singular Entities have: Attributes describe characteristics of the entity Identifier attribute (or group of attributes) whose value is associated with one and only one entity instance

Copyright © 2014 Pearson Canada Inc Student Data Model Entities

Copyright © 2014 Pearson Canada Inc Relationships Entities have relationships to each other 1:1 relationship Single entity to single entity 1:N relationship One-to-many Single entity to many entities N:M Many-to-many

Copyright © 2014 Pearson Canada Inc Example of Department, Adviser, and Student Entities and Relationships

Copyright © 2014 Pearson Canada Inc E-R Diagrams Rectangles represent entities Relationships shown by lines Crow’s foot Forks at end of lines Indicate more than one relationship Read “many” Vertical line means at least one entity of that type Small oval means entity is optional

Copyright © 2014 Pearson Canada Inc E-R Diagram Example

Copyright © 2014 Pearson Canada Inc Cardinality Number of entities that can be involved in relationship Maximum cardinality maximum number involved Minimum cardinality constraints on minimum requirements

Copyright © 2014 Pearson Canada Inc How Is a Data Model Transformed into a Database Design? Database design is the process of converting a data model into tables, relationships, and data constraints Transforms entities into tables Expresses relationships defines foreign keys Shows data constraints

Copyright © 2014 Pearson Canada Inc Normalization Normalization is the process of converting poorly structured tables into two or more well-structured tables Data integrity problems Different names for the same entity Produces incorrect and inconsistent information Resolve by eliminating duplicated data Normalizing for Data Integrity Eliminate data duplication Slower to process Construct tables such that every table has single topic

Copyright © 2014 Pearson Canada Inc Representing Relationships

Copyright © 2014 Pearson Canada Inc Representing a 1:N Relationship

Copyright © 2014 Pearson Canada Inc Relational Database Design Designer creates table for every entity Entity identifier becomes primary key of table Attributes of entity become columns Tables normalized to single theme Represent relationships between tables Add foreign key to one or more tables

Copyright © 2014 Pearson Canada Inc What Is the User’s Role? Final judges as to what data should contain Determine how records are related to each other Need to review data model Must insure that model reflects an accurate view of business

Copyright © 2014 Pearson Canada Inc Who Will Volunteer? (continued) Consultant creates data model Based on interviews with users Data model reviewed and approved Database tables constructed Primary and foreign keys selected based on interviews Microsoft Access database created Relationships indicated Forms and reports constructed

Copyright © 2014 Pearson Canada Inc Data Model for Volunteer Database

Copyright © 2014 Pearson Canada Inc Active Review 1. Who will volunteer? Summarize the problem that the fundraising manager must solve. Explain how a database can help solve this problem. Describe the missing information. In your own words, what data must be available to construct the missing information? 2. How are database application systems developed? Name and briefly describe the components of a database application system. Explain the difference between a database application system and a database application program. Using Figure CE5a-1 as a guide, describe the major steps in the process of developing a database application system. Explain what role is crucial for users and why that role is so important. 3. What are the components of the entity-relationship data model? Define the terms entity, attributes, and relationship. Give an example of two entities (other than those in this book) that have a 1:N relationship. Give an example of two entities that have an N:M relationship. Explain the difference between maximum and minimum cardinality. Show two entities having a 1:N relationship in which one is required and one is optional.

Copyright © 2014 Pearson Canada Inc Active Review 4. How is a data model transformed into a database design? Give an example of a data integrity problem. Describe, in general terms, the process of normalization Explain how normalizing data prevents data integrity problems. Explain the disadvantage of normalized data. Using your examples from Question 3, show how 1:N relationships are expressed in relational database designs. Show how N:M relationships are expressed in relational database designs. 5. What is the user’s role? Describe the major role for users in the development of a database application system. Explain what is required to change a 1:N relationship to an N:M relationship during the data modelling stage. Explain what is required to make that same change after the database application system has been constructed. Describe how this knowledge impacts your behaviour when a database application system is being constructed for your use.

Copyright © 2014 Pearson Canada Inc Active Review 6. Who will volunteer? (continued) Examine Figure CE5a-12. Describe the maximum and minimum cardinality for each relationship. Justify these cardinalities. Change the relationship between Prospect and Phone to N:M, and explain what this means. Change the relationship between Prospect and Work to 1:1, and explain what this means. Explain how each relationship is represented in the design in Figure CE5a-14. Show examples of both primary keys and foreign keys in this figure. In Contact, determine whether EmployeeName is part of a primary key or part of a foreign key. Explain what problem the consultant foresaw in the use of the Name attribute. Explain how that problem was avoided. The consultant added an attribute to the data model that was not part of the users’ world. Explain why that attribute will not add unnecessary complication to the users’ work experiences.