Download presentation
Presentation is loading. Please wait.
1
COS 346 Day 3
2
Agenda Questions from last Class? Assignment 31 Graded
2 A’s, 1 B, 1 C, 2 F’s and 1 non-submit Some of you need to take these assignments more seriously Assignment #2 Due next class Assignment # 3 will be assigned next class First Exam Feb2 one week from today Chaps 1-3 20 M/C; 5 Short essays 60 min WebCt Today’s discussion Entity-Relationship Data Modeling: Process and Examples Copyright © 2004
3
Chapter 3 Entity-Relationship Data Modeling: Process and Examples
4
Quick review of E-R Copyright © 2004
5
Quick review of IDEF1X Question 2.76 on page 69 of text P
FISH OBSERVATION RIVER OBSERVER CLASS CLASS_OFFERING PROFESSIONAL VOLUNTEER RIVER_SITE P Question 2.76 on page 69 of text Copyright © 2004
6
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 Copyright © 2004
7
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 Copyright © 2004
8
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 Copyright © 2004
9
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 Copyright © 2004
10
Specifying entities Copyright © 2004
11
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 Be careful of combinatorial explosions 5 entities -> 20 possible relationships to explore 10 entities -> 90 possible relationships to explore 100 entities -> 9900 possible relationships to explore Copyright © 2004
12
Specifying Relationships
Copyright © 2004
13
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 Copyright © 2004
14
COS 346 Day 4
15
Agenda Questions from last Class? Assignment # 2 Due
Assignment # 3 Posted First Exam Feb 9 Chaps 1-3 20 M/C; 5 Short essays 60 min WebCt Capstone Projects Today’s discussion Entity-Relationship Data Modeling: Process and Examples Copyright © 2004
16
Capstone Projects Students choice of projects
Since this class is on Databases, Project must be in this area Student must go beyond the curriculum of the course Student defined deliverables Must have a in-class presentation of project using PowerPoint Accepted proposal due by February 9 Progress reports required Guidelines Copyright © 2004
17
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 Important for “joins” Start of a data dictionary Once all attributes have been specified the model should be reviewed for missing entities Copyright © 2004
18
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 Copyright © 2004
19
Creating Data Models From Forms and Reports
Example: Single entities Copyright © 2004
20
Example: Identifying Connection Relationships
Cardinality? P, 1, Z Copyright © 2004
21
Example: Repeating Groups
Copyright © 2004
22
Example: Repeating Groups
Copyright © 2004
23
Example: Nested Groups
Copyright © 2004
24
Example: Non-Identifying Connection Relationships
Copyright © 2004
25
Example: Non-Identifying Connection Relationships
Copyright © 2004
26
Example: 1:N Copyright © 2004
27
Example: 1:N Copyright © 2004
28
Example: 1:N Copyright © 2004
29
Non-specific (N:M) Relationship
Copyright © 2004
30
Example: N:M Insert Copyright © 2004
31
Example: Assignment Relationship
Copyright © 2004
32
Example: Assignment Relationship
Copyright © 2004
33
Example Copyright © 2004
34
Example Copyright © 2004
35
Example Copyright © 2004
36
Example: Category Relationship
Copyright © 2004
37
Example: Category Relationship
Copyright © 2004
38
Example: Category Relationship
Copyright © 2004
39
Sales-Order Model Copyright © 2004
40
Example: Sales Order Copyright © 2004
41
Example: Sales Order Figure 3-16(c) shows an alternative design that allows an item to appear more than once on a given order Copyright © 2004
42
College Report Copyright © 2004
43
Department/Professor Report
Copyright © 2004
44
Choice 1 Copyright © 2004
45
Choice 2 Copyright © 2004
46
Choice 3 Copyright © 2004
47
Choice 4 Copyright © 2004
48
Department/Major Report
Copyright © 2004
49
Adding Student Entity Copyright © 2004
50
Advisee Letter Copyright © 2004
51
Adding Advisors & More Student Info
Copyright © 2004
52
University System With Domain Names
Copyright © 2004
53
Assignment #3 Problem 3.44 FiredUp Project Questions
Data modeling exercise Important stuff FiredUp Project Questions I will have corrected version back to you this weekend Copyright © 2004
54
Chapter 3 Entity-Relationship Data Modeling: Process and Examples
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.