




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Database Systems; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Fall 2005;
Typology: Assignments
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Note: Print your name and NetID in the upper right corner of every page of your submission. Handin your homework to Bethany Britton in 2232 SC.
Consider the following information about a university database:
Design and draw an ER diagram that captures the information about the university. Be sure to indicate any key and participation constraints.
Modify your solution for Problem 1 above, by introducing graduate students into the system:
Update your ER diagram for Problem 1 to reflect the information given above. Be sure to indicate any key and participation constraints.
Convert the E/R diagram of Problem 1 to a relational database schema. Don’t forget to indicate the keys for each relation.
Consider a relation with schema R(A,B,C,D) and FD’s AB → C, BC → D, CD → A and AD → B.
(a) Find the closures for subsets A, CD and ABD respectively. (b) List all nontrivial FD’s that follow from the given FD’s. (Note: List only the ones with single attributes on the right side, e.g., AB → C) (c) What are all the keys? Explain your answer.
The relationship between 3NF, BCNF, 4NF could be illustrated by the following figure. That is all the relations that are in 4NF are also in BCNF. And all the relations that are in BCNF are also in 3NF. Use your own examples to show relations that are:
(a) in 3NF but not in BCNF (b) in BCNF but not in 4NF (c) in 4NF Justify your examples by explaining why they satisfy the corresponding normal form requirements.
Figure 1: Normal Forms
Given a relation R and a set of functional dependencies (all the other functional dependencies could be derived from this set), can we always decide whether relation R is in BCNF by just checking whether there are any BCNF violations in the given set of functional dependencies, without checking other functional dependencies that could be derived from the given set of functional dependencies? If your answer is yes, try to prove it. If your answer is no, try to come up with a counter example.