experiencing mis 4th by kronenke extensions ch04

27 153 0
experiencing mis 4th by kronenke  extensions ch04

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Chapter Extension Database Design Study Questions Q1: Who will volunteer? Q2: How are database application systems developed? Q3: What are the components of the entity relationship data model? Q4: How is a data model transformed into a database design? Q5: What is the users’ role? Q6: Who will volunteer? (continued) Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-2 Q1: Who Will Volunteer? Challenge: • Secure 60 volunteers for six-night televised fund raiser Problems: • Need to contact previous volunteers • Need to know their years of experience, effectiveness, willingness to work multiple nights • Need a usable database format • Need to know how to proceed to create such a database? Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-3 Q2: How Are Database Application Systems Developed? Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-4 Q2: How Are Database Application Systems Developed? (cont’d) Interview users to identify and develop requirements for applications Analyze existing forms, reports, queries, other user activities Users approv e data model Summariz e requirem ents and themes in a data model Build databas e Users review and validate data model Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-5 Q3: What Are the Components of the Entity-Relationship Data Model? Entities • Something users want to track • Order, customer, salesperson, item, volunteer, donation Attributes • Describe characteristics of an entity • OrderNumber, CustomerNumber, VolunteerName, PhoneNumber Identifier • Uniquely identifies one entity instance from other instances • Student_ID_Number Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-6 Student Data Model Entities Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-7 Example of Department, Adviser, and Student Entities and Relationships A departme nt may have many advisers An adviser works in one departme nt 1:N relationships An adviser advises many students A student may have one or more advisers N:M relationships Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-8 Example of Department, Adviser, and Student Entities and Relationships N:M 1:N Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-9 Example of Relationships Showing Maximum Cardinalities―Version Crow’s Feet 1:N 1:N One department can have many advisers, but an adviser is in only one department N:M N:M An Adviser can have many students, and one student can many advisers Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-10 Q4: How Is a Data Model Transformed into a Database Design? • Normalization • Converting poorly structured tables into two or more well-structured tables • Goal  Construct tables with data about a single theme or entity • Purpose  To minimize data integrity problems Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-13 Data Integrity Problems • Data integrity problems produce incorrect and inconsistent information, users lose confidence in information, and the system gets a poor reputation • Can only occur if data are duplicated Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-14 Poorly Designed Employee Table Causes Data Integrity Problem Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-15 Two Normalized Tables Single Themes Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-16 Normalization Cautions • Normalization is just one criterion for evaluating database designs • Normalized designs can be slower to process • Designers sometimes choose to accept nonnormalized tables • Best design depends on users’ requirements Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall ce4-17 Transforming a Data Model into a Database Design Transforming a table into a normal form to remove duplicated data and other problems Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-18 Representing 1:N Relationships Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-19 Representing an N:M Relationship: Strategy for Foreign Keys Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-20 Q5: What Is the Users’ Role? • Users are the final judges of: – What data database should contain – How tables should be related • Users review data model to ensure it accurately reflects users’ view of the business  Mistakes will come back to haunt them Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-21 Q6: Who Will Volunteer? Data Model for Volunteer Database Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-22 Q6: Who Will Volunteer? (cont’d) First Table Design Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-23 Q6: Who Will Volunteer? (cont’d) Second Table Design Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-24 Volunteer Prospect Data Entry Form Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-25 Active Review Q1: Who will volunteer? Q2: How are database application systems developed? Q3: What are the components of the entity relationship data model? Q4: How is a data model transformed into a database design? Q5: What is the users’ role? Q6: Who will volunteer? (continued) Copyright © 2014 Pearson Education, Inc Publishing as Prentice Hall ce4-26 ce4-27 ... related • Users review data model to ensure it accurately reflects users’ view of the business  Mistakes will come back to haunt them Copyright © 2014 Pearson Education, Inc Publishing as Prentice

Ngày đăng: 17/01/2018, 16:13

Mục lục

  • Chapter Extension 4

  • Study Questions

  • Q1: Who Will Volunteer?

  • Q2: How Are Database Application Systems Developed?

  • Q2: How Are Database Application Systems Developed? (cont’d)

  • Slide 6

  • Student Data Model Entities

  • Slide 8

  • Slide 9

  • Slide 10

  • Slide 11

  • Crow’s-Foot Diagram Version

  • Slide 13

  • Problems

  • Poorly Designed Employee Table Causes Data Integrity Problem

  • Two Normalized Tables

  • Normalization Cautions

  • Transforming a Data Model into a Database Design

  • Representing 1:N Relationships

  • Representing an N:M Relationship: Strategy for Foreign Keys

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan