Professional Documents
Culture Documents
Database Processing
- Case & Exercise
Jason C. H. Chen, Ph.D.
Professor of MIS
School of Business
Gonzaga University
Spokane, WA 99258 USA
chen@jepson.gonzaga.edu
Dr. Chen, Management Information Systems
Part I
In-class exercise
UYK (p.195)
UYK#5(5-1, 5-2, 5-3); p.195
User
(e.g., GU
students,
faculty, staff
etc.)
mandatory many
mandatory one
Database
Application
Database
(e.g., ZagWeb,
Blackboard,
Bookstore,
Library, etc.)
(e.g., GU
database)
5-2.Consider the relationship between Adviser and Student in Figure 519. Explain what it means if the maximum cardinality of this relationship
is (A:S Advisor:Student)
a.
b.
c.
N:1
An advisor is assigned one student; a student is assigned many advisors.
1:1
An advisor is assigned one student; a student is assigned one advisor
5:1
An advisor is assigned one student; a student is assigned no more than
five advisors
d. 1:5
An advisor is assigned no more than five students; a student is assigned
one advisor
Dr. Chen, Management Information Systems
3. Identify two entities in the data entry form in Figure 528. What attributes are shown for each? What do you
think are the identifiers?
Fig 5-28
Dr. Chen, Management Information Systems
5-3. Identify two entities in the data entry form in Figure 5-28.
What attributes are shown for each? What do you think are the
identifiers?
Entities (or Tables/Files):
Employee; Class
Employee attributes:
Employee Number, First Name, Last
Name, Email
Class attributes:
Course Name, Course Date, Instructor,
Remarks
Employee identifier (key):
Employee Number
Class identifier (key):
Course Name & Course Date
Why two fields? And what is it called?
Composite Key
Dr. Chen, Management Information Systems
MyMISLab (p.203)
5-17
5-18
MyMISLab (5-17,5-18) p.203
5-18. The partial E-R diagram in Figure 5-38 (next page) is for a
sales order. Assume there is only one Salesperson per SalesOrder.
10
5-18 (a). Specify the maximum cardinalities for each relationship. State
your assumptions, if necessary.
A Salesperson writes many Sales Orders; a Sales Order is written by one
Salesperson. (Assumes Salespeople work alone and not in teams)
A Customer places many Sales Orders; a Sales Order is placed by one
Customer.
A Sales Order contains many Line Items; a Line Item is contained in one
Sales Order.
A Line Item contains one Item; an Item is contained in one Line Item.
[M]
[M]
[M]
11
5-18(b). Specify the minimum cardinalities for each relationship. State your assumptions, if
necessary.
A Salesperson may have zero Sales Orders; a Sales Order is written by one Salesperson.
(Assumes Salespeople work alone and not in teams; assumes a Sales Order is not
required for a Salesperson to exist in the system)
A Customer places at least one Sales Order; a Sales Order is placed by one and only one
Customer. (Assumes at least one Sales Order is required for a Customer to exist in the
system)
A Sales Order contains at least one Line-Item; a Line-Item is contained in one and only
one Sales Order.
A Line Item contains one and only one Item; an Item is contained in one and only one
Line Item.
[0]
[>=1]
[>=1]
[1]
Dr. Chen, Management Information Systems
12
Case Study 5:
Searching for Pianos
(pp. 198-202)
13
14
14
Pianos in Storage
15
15
Columns in
the Piano
Table
16
17
Piano Sound
Quality by
Building
18
19
20
21
22
23
24