Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Class: Name: Student ID: Lab 8

HONG KONG INSTITUTE OF VOCATIONAL EDUCATION


Laboratory 8: Entity-Relationship Diagram & Normalization

Module Intended Learning Outcome (#2):


On completion of the module, students are expected to be able to:
 Apply database design techniques to design relational data models typically used in
business application systems.

Lesson Intended Learning Outcome:


On completion of this lab, students are expected to be able to:
 Design relational data model using ER diagram for given business cases.
 Perform normalization on relational data.

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.

©2020 VTC ITP4903 Database Principles IT/LWL v2.1 - Page 1 of 4


Class: Name: Student ID: Lab 8

2 Given the following Student-Course Registration table.

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.

Give details of each stage of the Normalization.

UNF: UnNormalized Form (Transfer Attributes into TABLE)

1NF: First Normal Form (Remove repeating groups)

©2020 VTC ITP4903 Database Principles IT/LWL v2.1 - Page 2 of 4


Class: Name: Student ID: Lab 8

2NF: Second Normal Form (Remove partial dependencies)

3NF: Third Normal Form (Remove transitive dependencies)

©2020 VTC ITP4903 Database Principles IT/LWL v2.1 - Page 3 of 4


Class: Name: Student ID: Lab 8

3 Draw an Entity-Relationship diagram ERD to represent the data requirement for Task 2.

©2020 VTC ITP4903 Database Principles IT/LWL v2.1 - Page 4 of 4

You might also like