





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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 stapled homework to Donna Coleman in 2120 SC. In case Donna is not in office, slide your homework under the door.
To grade homeworks faster, the homework is partitioned into two parts. Please, submit each part separately. For each part, make sure to write down your name and NetID.
This homework is partitioned into two parts as follows:
There is a bonus credit of 2% if your homework is formatted correctly: Each part must be separable so that it can be independently graded. If you submit a paper copy then each part should i) be separately stapled and ii) include your netid.
Handwritten submissions will be graded but they will take longer to grade. For clarity, machine formatted text is preferable: Expect to lose points if your handwritten answer is unclear or misread by the grader.
Suppose you are hired by the university academic office to develop a course system. Your first task is to develop the course databases, with the following information:
Please design and draw an E/R diagram that captures the above information. Note that we can accept that an attribute is a set of values. Also, be careful to indicate any key and participation constraints (multiplicity constraints).
a) Convert the E/R diagram of Problem 1 to a relational database schema. Don’t forget to indicate the keys (by underlining them) for each relation. Note that you don’t need to combine the relations for removing duplications in this problem. (4 points)
b) Convert the students, undergrads, grad students, and TAs subclass relationships in Problem 2 into relational schema, using the following three approaches: ER approach, Object-Oriented approach, and Null approach. (6 points, 2 points for each approach)
a) Please briefly explain what is a weak entity set. In your answer to Problem 2, is there any weak entity set? If yes, please list all of them and briefly explain why they are weak. Besides, please also list their supporting relationships, if there is any.
b) Briefly describe the following concepts about keys in a relational database design:
each)
a) Use Armstrong’s axioms to prove Pseudo-transitivity rule below. X → Y and Y Z → U , then XZ → U , where X, Y , Z, and U are a set of attributes.
b) The staffs for CS411 came up with the idea of another normal form called No Functioanl Dependency Normal Form (NFDNF). We say that a relation R is in NFDNF if and only if there is no non-trivial functional dependency for R. Is it a good idea to decompose a relation into a set of relations in NFDNF? Give your answer and explain why.
c) A relation R involves a FD that violates BCNF condition and another FD whose left side is a super key for R. Prove that it is impossible to decompose R into a set of relations in BCNF while preserving all the functional dependencies of R.
Consider a relation with schema R(A,B,C,D,E) and FD’s AB → C, DE → C, and B → D.
a) Decide whether this relation is in BCNF or not. Explain why.
b) Decompose the relations, if necessary, into collections of relations that are in BCNF. Make sure to indicate which dependency you apply to each decomposition.
c) Decide whether this relation is in 3NF or not. Explain why.
d) Decompose the relations, if necessary, into collections of relations that are in 3NF. Make sure to indicate how you obtain each decomposed relation. (Note that the FD’s given in the problem is a minimum cover of a set functional dependencies for R.)