Sie sind auf Seite 1von 2

Data Management & SQL Homework: Lecture 1

Due date: 16/10 [23h59 CET]

General Instructions

Please upload an electronic version of your report to Blackboard [Assignments -> Data
Management & SQL -> Homework Lecture 1]. Clearly indicate your name, due date,
homework number and course name in the report. You can write the report in MS Word,
LATEX, etc.

The assignment

1. Given below, is a class diagram of a database for a book store which tracks information about
customers and what they buy. In this particular bookstore, both books and stationary can be
bought. Notice that the associations are missing (see below).

Reconstruct the associations. Do not forget to indicate the type of relationship, add the minimum
and maximum values of the associations and the primary keys. Clearly indicate what your
assumptions are.

Customer
Order Book Order
Customer_ID
First Name Order_ID Order_ID
Last Name Customer_ID ISBN
Date of birth Order_Date Unit Price
Phone Order_Total Amount
Street
HouseNr
City Stationary Order Book
ZIP
Country Order_ID ISBN
Stationary_ID Title
Unit Price First Author
Amount Publisher
Stat. Categories

Stat_Category_ID Stationary
Category_Name
Stationary_ID
Stationary_Category_ID
Description

1
2. Given below, is a form from the online company See Them Play Inc. The form is used to allow
customers to buy tickets for music shows online. Customers can be several tickets for a
particular show at once, but have to assign each ticket to an individual.

See Them Play Inc.


Order Date:
Customer Artist
First Name: Band/Artist Name:
Last Name: Date of concert:
Phone Nr: Venue Name:
E-mail: Venue Address:
City:
Street:
House Nr:

Ticket Holders

Holder ID First Name Last Name E-mail

Assumptions

1. A customer fills out one form for each particular concert.


2. Holder ID is a unique ID identifying a ticket holder. If the same ticket holder would go to a
different concert, his/her Holder ID would be the same.

Normalize the form from the initial form into the 3NF. Cleary indicate the functional dependencies
and any additional assumptions you make (optional). After the complete normalization process also
provide the relationship diagram in3NF.

Good luck!

Leandro Garcia Barrado

Das könnte Ihnen auch gefallen