Record Structures Data fields in each record of a database table Structure is usually fixed Example... Two database users might want to access the same record at the same time C... Tw
Trang 1Chapter 3:
Data Modeling
Introduction
An Overview of Databases
Steps in Developing a Database Using
Resources, Events and Agents Model
Normalization
Trang 2Uses of a modern AIS
Trang 3What is a Database?
Collection of organized data
Used by many different computer
applications
Manipulated by database management
systems (DBMS)
Trang 5Data must be stored and organized
Trang 7Record Structures
Data fields in each record of a database table
Structure is usually fixed
Example
Trang 8Database Keys
Primary Key
Foreign Keys
Trang 9Records Combined Into
Report
Trang 10Additional Database Issues
Administration
Documentation
Trang 11Data Dictionary Example
Trang 12Additional Database Issues
Data Integrity
Processing Accuracy and Completeness
Trang 13Additional Database Issues
Concurrency
Backup and Security
Trang 14The part of the data hierarchy that represents one instance of
Trang 15The part of the data hierarchy that represents one instance of
Trang 16Within the context of databases, the term “concurrency” refers
to the possibility that:
A A customer of one store might also be a customer of another store
B Two database users might want to access the same record at the same time
C A credit entry for a customer requires a debit entry for a
matching account
Study Break #2
Trang 17Within the context of databases, the term “concurrency” refers
to the possibility that:
A A customer of one store might also be a customer of another store
B Two database users might want to access the same record at the same time
C A credit entry for a customer requires a debit entry for a
matching account
D None of these
Study Break #2 - Answer
Trang 19Identify Business and Economic Events
Identify Entities
Identify Relationships Among Entities
Steps in Developing Databases with REA
Trang 20Create Entity-Relationship Diagrams
Identify Attributes of Entities
Convert E-R Diagrams into Database Tables
Steps in Developing Databases with REA
Trang 22Entity Examples
Trang 24 Occurrence of one entity
Associated with occurrence of one event of another entity
Trang 25Cardinality Relationships
Trang 26Structure
Entity-Relationship Diagram
Trang 27E-R Diagram Example
Trang 28Relationship Tables
Provide greater flexibility
Need for Relationship Tables
Trang 29Relationship Tables
Trang 30Schematic of Database Tables
Trang 31In the REA model, the “A” stands for:
Trang 32In the REA model, the “A” stands for:
Trang 33Which of these is not a cardinality between two database
Trang 34Which of these is not a cardinality between two database
Trang 35Normalization
Methodology ensuring attributes are stored in most
appropriate tables
Design promotes accuracy
Avoids redundancy of data storage
Levels
First normal form
Second normal form
Third normal form
Trang 36Unnormalized Data
Trang 37First Normal Form
In First Normal Form (1 NF) when:
Problems
Trang 38First Normal Form Example
Trang 39Second Normal Form
In Second Normal Form (2 NF) when:
Benefits
Trang 40Second Normal Form
Example
Trang 41Third Normal Form
In Third Normal Form (3 NF) when:
Ultimate Goal
Trang 42Third Normal Form Example
Trang 43A database is in third normal form (3NF) if it is second normal form and:
A All the data attributes in a record are well defined
B All the data attributes in a record depend on the record key
C The data contain to transitive dependencies
D The data can be stored in two or more separate tables
Study Break #5
Trang 44A database is in third normal form (3NF) if it is second normal form and:
A All the data attributes in a record are well defined
B All the data attributes in a record depend on the record key
C The data contain to transitive dependencies
D The data can be stored in two or more separate tables
Study Break #5 - Answer
Trang 45Copyright 2012 John Wiley & Sons, Inc All rights reserved
Reproduction or translation of this work beyond that permitted in
Section 117 of the 1976 United States Copyright Act without the
express written permission of the copyright owner is unlawful
Request for further information should be addressed to the
Permissions Department, John Wiley & Sons, Inc The purchaser
may make backup copies for his/her own use only and not for
distribution or resale The Publisher assumes no responsibility for errors, omissions, or damages, caused by the use of these programs or from the use of the information contained herein.
Trang 46Chapter 3