Case Study 5 - Pesendorfer
.docx
keyboard_arrow_up
School
University of Tulsa *
*We aren’t endorsed by this school
Course
7093
Subject
Information Systems
Date
Dec 6, 2023
Type
docx
Pages
3
Uploaded by PresidentExplorationOtter33
Case Study 5 - Pesendorfer
Morgan Importing Project
A.
Follow the procedure shown in Figure 4-1 to assess these data.
1.
List all functional dependencies.
ShipmentNumber
Shipper
ShipmentNumber
Phone
ShipmentNumber
Contact
ShipmentNumber
From
ShipmentNumber
Departure
ShipmentNumber
Arrival
ShipmentNumber
Contents
Shipper
Phone
Shipper
Contact
(Item, Date, City, Store)
Salesperson
(Item, Date, City, Store)
Price
2.
List any multivalued dependencies.
City
Store
(City, Store)
Item
(City, Store)
Salesperson
3.
List all candidate keys.
SHIPMENT table: ShipmentNumber
ITEM table:
(Item, Date, City, Store)
4.
List all primary keys.
SHIPMENT table: ShipmentNumber
ITEM table:
(Item, Date, City, Store)
5.
List all foreign keys.
SHIPMENT table: Item (referring to ITEM table)
ITEM table:
No FKs
6.
State any assumptions you make as you list these components.
There are only two tables
Each item has a unique description and price
Each shipment has a distinct source, date, and destination
Each item can appear in multiple shipments
The quantity of an item in a shipment can vary
B.
List questions you would ask Phillip to verify your assumptions.
Do multiple stores sell the same product?
Do some shippers have more than one phone?
Can stores in the same names within a country but within different cities?
Can cities in different countries have the same name?
Does is shipping store only have one contact person?
Are there items with identical descriptions but different prices
Are the same items from one store shipped together or can they be in
different shipments?
C.
If there are any multivalued dependencies, create the tables needed to eliminate these
dependencies.
City
Store
CITY_STORE (City, Store)
(City, Store)
Item
CITY_STORE_ITEM (Item, City, Store)
(City, Store)
Salesperson
CITY_STORE_SALESPERSON (City, Store, Salesperson)
D.
The relationship between shipment and item data could possibly be inferred by matching values
in the From cells to values in the City cells. Describe two problems with that strategy.
The first set of issues pertains to inferring the relationship between shipments and items
by comparing values in the "From" cells to those in the "City" cells. These issues include
the assumption that the source city always matches the city from which the shipment
originated, which may not always be accurate. Additionally, it fails to consider scenarios
where items may have been shipped from various sources within the same city.
The second set of problems arises from the potential miscommunication among the
"From" cells in the two tables. In the SHIPMENT table, the "From" cell refers to the
location where shipments are dispatched, while in the ITEM table, it refers to the place
where items are ordered. This dual usage of the "From" cell in two different contexts,
involving both countries and cities, has the potential to create confusion and
miscommunication between the two tables.
E.
Describe a change to this spreadsheet that does express the shipment–item relationship.
The ShipmentNumber can be put in the ITEM table. That way it will be easy to identify in which
shipment each item was assuming all items will be in the same shipment.
F.
Assume that Phillip wishes to create an updatable database from these data. Design tables you
think are appropriate. State all referential integrity constraints.
ITEM (Item
, {Description, weight, quantity on hand, etc.})
CITY_STORE (City
, Store
, {Country, Adress etc.})
CITY_STORE_SALESPERSON (
City
,
Store
, Salesperson)
WHERE CITY_STORE_SALESPERSON.(City, Store) must exist in CITY_STORE.(City, Store)
CITY_STORE_ITEM (
City
,
Store
,
Item
)
WHERE CITY_STORE_ITEM.(City, Store) must exist in CITY_STORE.(City, Store)
AND CITY_STORE_ITEM.Item must exist in ITEM.Item
ITEM_PURCHASE(
Item
, Date
,
City
,
Store
, Salesperson, Price)
WHERE ITEM_PURCHASE.(Item, City, Store) must exist in CITY_STORE_ITEM.(Item, City,
Store)
SHIPPER (Shipper
, Phone, Contact)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help