Database
|
Pg. 04 |
|
Question Four |
|
|
|
|
Assignment #2
Deadline: Thursday 05 November 2020 @ 11:59
[Total Marks for this Assignment are 5]
Introduction to Database
IT244
College of Computing and Informatics
|
|
|
|
|
|
|
|
Question One
1.5 Marks
Learning Outcome(s):
Create entity-relationship model, relational model, and write SQL queries
Draw the corresponding ERD for the following Employee Database:
Employee (emp_id, first_name, middle_name, last_name, date_of_birth)
Dept (Dept_id, Dept_name, Building)
works (emp_id, dept_id, hours)
Emp_phone (emp_id, phone_num)
Question Two
1.5 Marks
Learning Outcome(s):
Design a database starting from the conceptual design to the implementation of database schemas
Normalize the following Schema with the given functional dependencies into BCNF.
EnrollStud (StudID, ClassID, Grade, ProfID, StudName)
Functional Dependencies:
FD1: StudID, ClassID Grade, ProfID, StudName
FD2: StudID StudName
FD3: ClassIDProfID
Question Three
1.5 Marks
Learning Outcome(s):
Design a database starting from the conceptual design to the implementation of database schemas
Consider the following relation:
Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building)
Having following multivalued dependencies:
F ={ Student-ID Course
Student-ID SportsActivity
Dept-Name Building }
Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here means any sport a student is participating in. For example, a student with ID = 123 can participate in soccer and badminton.
Question Four
0.5 Marks
Learning Outcome(s):
Explain database concepts, systems, and architectures.
In your own word, explain why do designers use Denormalization? What is the limitation of using Denormalization? Name and explain a better alternative approach than Denormalization.