Download presentation
Presentation is loading. Please wait.
Published byPhillip Parker Modified over 9 years ago
1
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/1 Copyright © 2004 Please……. No Food Or Drink in the class room Cell phones off Pagers on vibrate Phasers on stun
2
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples
3
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/3 Copyright © 2004 To understand the data modeling process including scope definition and determining requirements. To be able to determine Entities, Attributes, and Relationships To be able to locate entity identifiers To understand how to use domains. To be able to model Non-identifying connection relationships, Identifying connection relationships, Non-Specific Relationships, and Categorization Relationships CHAPTER OBJECTIVES
4
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/4 Copyright © 2004 A Data Modeling Process Steps in the data modeling process –Plan project –Determine requirements –Specify entities –Specify relationships –Determine identifiers –Specify attributes –Specify domains –Validate model
5
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/5 Copyright © 2004 Planning the Project Obtaining project authorization and budget Building the project team Planning the team’s activities Establishing tools, techniques, and standards for consistent results Defining the project’s scope
6
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/6 Copyright © 2004 Determining System Requirements Sources for data modeling requirements –User interviews and user activity observations –Existing forms and reports –New forms and reports –Existing manual files –Existing computer files/databases –Formally defined interfaces (XML) –Domain expertise The result of the requirements determination will be a repository of notes, diagram, forms reports, files, etc., that can be used to develop the data model
7
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/7 Copyright © 2004 Specifying Entities An entity is something that the users want to track; something the users want to keep data about Entities –can be physical things or logical concepts –are identifiable; you can tell one from another –are things described by nouns, not characteristics described by adjectives
8
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/8 Copyright © 2004 Specifying Relationships Includes: –Identity of the parent and child entities –Relationship type –Minimum and maximum cardinalities –Name of the relationships Two techniques: –Examine whether a relationship exists between every combination of two entities –Locate relationships from requirement documents A combination of the two approaches may be used
9
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/9 Copyright © 2004 Determining Identifiers Identifier is an attribute or group of attributes that uniquely identifies an entity instance If there is difficulty specifying an identifier, maybe: –it should be part of a different entity –it is a subtype or category of a common entity –it needs one or more identifying relationships
10
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/10 Copyright © 2004 Specifying Attributes and Domains Find attributes on forms, reports, existing files, etc., and add them to entities Determine whether the attribute has already defined a domain –If so, the attribute is based upon that domain –If not, a new domain is defined Review the domains and make adjustments as necessary Domain property inheritance: when the domain properties change, all the attribute properties change as well Domains may be used to enforce data standards promoting compatible data types and systems Once all attributes have been specified the model should be reviewed for missing entities
11
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/11 Copyright © 2004 Validating Model Data model is a model of humans’ models, not a model of reality A data model is wrong if it does not accurately reflect the ways the users think about their world Data models are validated through a series of reviews –Normally, a team review is followed by user reviews E-R model as well as prototypes of forms and reports may be used to communicate to users features of the data model
12
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/12 Copyright © 2004 Creating Data Models From Forms and Reports Example: Single entities
13
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/13 Copyright © 2004 Example: Identifying Connection Relationships
14
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/14 Copyright © 2004 Example: Repeating Groups
15
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/15 Copyright © 2004 Example: Repeating Groups
16
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/16 Copyright © 2004 Example: Nested Groups
17
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/17 Copyright © 2004 Example: Non-Identifying Connection Relationships Example: 1:1
18
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/18 Copyright © 2004 Example: Non-Identifying Connection Relationships
19
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/19 Copyright © 2004 Example: 1:N
20
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/20 Copyright © 2004 Example: 1:N
21
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/21 Copyright © 2004 Example: 1:N
22
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/22 Copyright © 2004 Example: N:M Insert
23
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/23 Copyright © 2004 Example: Assignment Relationship
24
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/24 Copyright © 2004 Example: Assignment Relationship
25
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/25 Copyright © 2004 Example: Category Relationship
26
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/26 Copyright © 2004 Example: Category Relationship
27
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/27 Copyright © 2004 Example: Category Relationship
28
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/28 Copyright © 2004 Sales-Order Model
29
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/29 Copyright © 2004 Example: Sales Order
30
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/30 Copyright © 2004 Example: Sales Order Figure 3-16(c) shows an alternative design that allows an item to appear more than once on a given order
31
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/31 Copyright © 2004 Example: University System
32
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/32 Copyright © 2004 University System With Domain Names
33
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/33 Copyright © 2004 Summary Purpose of a database is to help people keep track of things Databases consist of groups of related tables. A key is a column that identifies a unique row A foreign key is a column in one table that is a unique identifier in a second table
34
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/34 Copyright © 2004 Reminder DO NOT FORGET TO SIGN THE ATTENDANCE SHEET BEFORE YOU LEAVE TONIGHT
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.