You are on page 1of 4

IS 445

practice problems for Exam 1

Problem 1.
• Clearly show identifier attribute(s) and all other attributes of all entities in the ERD.
• Make sure you show all the cardinalities.
• Write down your assumptions if needed.
Part 1. Use the following scenario to construct an Entity-Relationship Diagram.

A recent MBA graduate went to work in his family’s business. As his first job, he was placed in charge of the shoe
department at one of the larger stores owned by the family. He immediately found that the information about
sales and inventory, which was manually recorded, was inaccurate and out of date. He decided to build a small
database to improve the quality of information available within the department. Using the following description,
construct an ERD that provides an accurate overview of the department’s data.

Shoes are identified by a unique code called Shoe_code. The shoe department stores style, size, and color
information of each shoe pair. Each shoe style/size/color combination is considered unique. For example, a pair
of women’s size 6 black Espirit shoes has shoe code 56756-6. Size 7 of the same style/color has a different shoe
code.

A specific shoe (style/size/color) will be purchased from a single supplier. However, a supplier may supply various
types of shoes. Suppliers are identified by a unique supplier code and the department stores each supplier’s
name and phone number.

There is a need to keep track of customer purchases. A unique customer ID identifies each customer. Additional
information, such as name, address, and phone number are also stored for each customer.

Different customers have different buying habits. Some customers purchase only a single pair of shoes. Others
purchase many different pairs while still others purchase several pairs of the identical shoe at once or over time.
All of these types of purchases must be recorded. For each purchase, the date/time of purchase, the quantity
purchased, and the type of transaction (e.g., cash or credit card) should be recorded.

A unique employee number identifies each salesperson. Each purchase is credited to a single salesperson. This
information is necessary because part of the salesperson’s compensation is based on a sales commission. The
department stores each salesperson’s name, address, and date_hired.

1
IS 445
practice problems for Exam 1
Part 2. Convert the ERD into relations.

2
IS 445
practice problems for Exam 1
Problem 2. Based on below table, prepare your response to the following questions.
AccountNo Balance Branch_Name Branch_StreetName
0001 $3457 SeattleCenter Westlake ave
0002 $50 SeattleCenter Westlake ave
0003 $0 BellevueSquare NE 8th street
0004 $3457 BellevueSquare NE 8th street
0005 $40 LosAngeles NE 8th street
0006 $4526 LosAngeles NE 8th street
0007 $56 LosAngeles NE 8th street
0008 $7890 LosAngeles NE 8th street
*AccountNo is the primary key of the table

Part 1. Based on the data table, draw as-is dependency diagram, and show dependency types
(full, partial, and transitive).

3
IS 445
practice problems for Exam 1
Part 2. Draw dependency diagram after converting the as-is dependency diagram into the 3rd
normal form. Show foreign keys and connections across tables using arrows.

Part 3. Based on the 3rd normal form dependency diagram you created in question 2, draw ERD.
Show cardinalities. Write reasonable assumptions, if needed.

You might also like