You are on page 1of 2

WXES2103

REVISION 1

1. Using information below, create the ER model below to accommodate the following
additional requirements:

“You know, we really need to keep a history of all our rentals. Each time a customer
rents a tape, we would like to keep the rental date/time and the return date/time. All our
tapes are due back the next day, so we don’t need to keep a due date. Keeping this rental
history will allow us to analyze the pattern of our rentals. We will be able to determine
how many tapes each customer rents and how many times a customer has returned a tape
late. We will also know how many times a particular tape has been used and will then
know when to retire each tape. We will also be able to analyze our customers’ movie
preferences.”

2. Examine the table shown below.

StudID StudName Major GradHours CourseID CourseName CreditHour Grade


P1050 Azura Ali Computer 118 CS001 Intro to 3 A
Science Programming
P1050 Azura Ali Computer 118 CS002 Info Systems 3 A
Science
P1050 Azura Ali Computer 118 CS003 C++ Lab 2 B
Science
L2115 Kenny Chong Information 110 IT001 Into to Info 3 A
Technology Systems and
Technology
L2115 Kenny Chong Information 110 IT002 Intro to DB 3 B
Technology
L4211 Ahmad Ismail Computer 118 CS002 Info Systems 3 A
Science
L4211 Ahmad Ismail Computer 118 CS004 Web 3 B
Science Programming
L3457 S. Rajoo Software 120 CS003 C++ Lab 2 B
Engineering

a. Explain why this table is not in 2NF? Illustrate your explanations by using appropriate
examples from the table.
[2 marks]

b. Normalize the table into 2NF. Show your answer in schema format ie.
TABLENAME(key, attibute….)
[3 marks]
c. What is the condition for a table to be in 3NF? Normalize the table into 3NF. Explain your
normalization process using appropriate examples from the table. Show your answer in
schema format ie. TABLENAME(key, attibute….)
[5 marks]

You might also like