Chapter 9 Designing Databases 315
Thelma. You have just completed the design work
for the various forms and reports that will be used
by Bob, Thelma, and their employees. Now it is
time to prepare logical and physical database
designs for the new Hoosier Burger system.
During a meeting with Hoosier Burger project
team members, you review the four steps in logi-
cal database modeling and design. It will be your
task to prepare the logical models for the Cus-
tomer Order Form, Customer Account Balance
Form, Daily Delivery Sales Report, and Inventory
Low-in-Stock Report. At the next meeting, the
E-R model will be translated and a final logical
model produced.
a. Develop logical models for each of the inter-
faces mentioned in the case scenario.
b. Integrate the logical models prepared for part
a into a consolidated logical model.
c. What types of problems can arise from view
integration? Did you encounter any of these
problems when preparing the consolidated
logical model?
d. Using your newly constructed logical model,
determine which fields should be indexed.
Which fields should be designated as calcu-
lated fields?
3. PlowMasters
PlowMasters is a locally owned and operated
snow removal business. PlowMasters provides
residential and commercial snow removal for
clients throughout a large metropolitan area. Typ-
ical services include driveway and walkway snow
removal, as well as parking lot snow maintenance
for larger commercial clients.
PlowMasters’ clientele has grown over the past
several snow seasons. Recent heavy snowfall,
coupled with a successful advertising campaign,
has increased current demand even more, and
this increase in demand is expected to continue.
In order to provide faster, more efficient service,
PlowMasters has hired your consulting company
to design, develop, and implement a computer-
based system. Your development team is cur-
rently preparing the logical and physical database
designs for PlowMasters.
a. What are the four steps in logical database
modeling and design?
b. Several relations have been identified for this
project, including removal technician, cus-
tomer, service provided, equipment inventory,
and services offered. What relationships exist
among these relations? How should these re-
lationships be represented?
c. Think of the attributes that would most likely
be associated with the relations identified in
the part b. For each data integrity control
method discussed in the chapter, provide a
specific example.
d. What are the guidelines for choosing indexes?
Identify several fields that should be indexed.
CASE: PETRIE’S ELECTRONICS
Designing Databases
Jim Watanabe, assistant director of IT for Petrie’s
Electronics and the manager of the “No Customer
Escapes” customer loyalty system project, was walk-
ing down the hall from his office to the cafeteria. It
was 4
P.M., but Jim was nowhere close to going home
yet. The deadlines he had imposed for the project
were fast approaching. His team was running behind,
and he had a lot of work to do over the next week to
try to get things back on track. He needed to get some
coffee for the start of what was going to be a late night.
As Jim approached the cafeteria, he saw Sanjay
Agarwal and Sam Waterston walking toward him.
Sanjay was in charge of systems integration for
Petrie’s, and Sam was one of the company’s top
interface designers. They were both on the customer
loyalty program team. They were having an intense
conversation as Jim approached.
“Hi guys,” Jim said.
“Oh, hi, Jim,” Sanjay replied. “Glad I ran into you—
we are moving ahead on the preliminary database de-
signs. We’re translating the earlier conceptual
designs into physical designs.”
“Who’s working on that? Stephanie?” Jim asked.
Stephanie Welch worked for Petrie’s database
administrator.
“Yes,” Sanjay replied. “But she is supervising a
couple of interns who have been assigned to her for
this task.”
“So how is that going? Has she approved their work?”
“Yeah, I guess so. It all seems to be under control.”
“I don’t want to second-guess Stephanie, but I’m
curious about what they’ve done.”