Professional Documents
Culture Documents
ITP4903 Laboratory 8 (v2.1 - LWL) - Answer Sheet
ITP4903 Laboratory 8 (v2.1 - LWL) - Answer Sheet
TASK:
1. The Hong Kong Film Archive wishes to create a database to hold information about the
films and the actors, produced by the Hong Kong film companies. Each film has a Chinese
title, an English title, published year, director, major actors and description. Each film
company makes a number of films, and each film is produced by only one film company.
Each director may direct many films and the Film Archive assume there is only one director
for each film. There are always several major actors in a film. Some actors belong to
agency companies which represent them and other work independently and have no agency
company.
Create an ER diagram for the above description and eliminate all the many-to-many
relationships.
StudCourse
sNo sName sAdd cNo cName cFee lNo lName lLoc regDate
S100 Amy Chan 1 Tsuen Wan C100 Visual Basic 1600 L111 Peter Tse RM 440 01-JUL-05
C200 Database 1500 L222 Jenny Hui RM 328 13-AUG-05
S200 Barry So 9 Happy Valley C100 Visual Basic 1600 L111 Peter Tse RM 440 02-JUL-05
S300 Carol Lau 28 Lucky Bay C300 Mutlimedia 1200 L888 Paul Lam RM 234 15-AUG-05
where
sNo = Student Number, sName = Student Name,
sAdd = Student’s Address, cNo = Course Number,
cName = Course Name, cFee = Course Fee,
lNo = Lecturer Number, lName = Lecturer Name,
lLoc = Lecturer’s Location, regDate = Registration Date
Given that sNo is the primary key of the above table.
Assume that each student can register more than but at least one course. Each course has at
least one student. Each course is taught by one lecturer and each lecturer teaches at least
one course. Normalize the above table to 3NF.
3 Draw an Entity-Relationship diagram ERD to represent the data requirement for Task 2.