Question

Section B. For each question in this section, you are required to list all possible candidate...

Section B. For each question in this section, you are required to list all possible candidate keys for the given
schema based on the functional dependencies provided. You may wish to compute the closure of
your key(s) to confirms they are valid.


Question 1
R [A, B, C, D, E, F, G, H, I, J]
{A} -> {B}
{C} -> {B}
{B} -> {D, E, F, G, H}
{D, F} -> {I, J, A}

Question 2
R [A, B, C, D, E, F, G, H]
{A, B} -> {C, D, E}
{C} -> {A, B, D, E}
{D} -> {G}
{E} -> {F}

Section C. For each question in this section, you are required state and justify the highest normal form of the
relation given a schema and functional dependencies. Your explanations should be brief and concise.
Hint: It may be useful to identify the candidate keys for each relation.

Question 1
R [A, B, C, D, E, F]
{B, C} -> {D, E, F}
{A} -> {D, E, F}

Highest Normal Form: ?
Explanation: ?

Question 2
R [A, B, C, D, E, F, G, H]
{A, B, C} -> {D, E, F, G, H}
{G, H} -> {A, B, C}

Highest Normal Form: ?
Explanation: ?

Homework Answers

Answer #1

Section B:

Candidate key(s) is superkey with minimum attributes where superkey is a set of one of one or more attribute that can uniquely identify a tuple in a relation.

Question 1:

Given relation: R [A, B, C, D, E, F, G, H, I, J]
Functional dependencies:
{A} -> {B}
{C} -> {B}
{B} -> {D, E, F, G, H}
{D, F} -> {I, J, A}

Answer: In the given functional dependencies, attribute C is not present in any of the dependencies in the right hand side. Thus, let check the closure of C, i.e. whether attribute C itself can be the candidate key or not.

{C}+ = closure of {C} = { C, B, D, E, F, G, H, I, J, A}

Since all the attributes can be derived using the closure of C, C is a candidate key.

Now, in any other combination of keys, if C is not considered in the key, C cannot be derived on the right hand side. Thus, all other possible keys should contain C, which will become superkey. Thus, only one candidate key is possible, which is C.

Candidate key(s): {C}

Question 2:

Given relation: R [A, B, C, D, E, F, G, H]
Functional dependencies:
{A, B} -> {C, D, E}
{C} -> {A, B, D, E}
{D} -> {G}
{E} -> {F}

Answer: In the given functional dependencies, H is not present in any of the functional dependencies. Thus, attribute H must be present in the candidate key.

Now, closure of {A,B,H} = {A,B,H}+ = { A, B, H, C, D, E, G, F}

Since all the attributes of R can be derived, {A,B,H} is a candidate key.

On the other hand, closure of {C, H} = {C, H}+ = {C, H, A, B, D, E, G, F}

So, {C, H} is also a candidate key.

Any other combination of keys to generate all the attributes will overlap the existing candidate keys. Thus, two candidate keys are possible.

Candidate keys: {A, B, H}, {C, H}

Section C:

The highest normal form of a relation can be determined by checking the functional dependencies along with the candidate key(s).

Question 1:

Given relation: R [A, B, C, D, E, F]
Functional dependencies:
{B, C} -> {D, E, F}
{A} -> {D, E, F}

Explanation: At first, the candidate key(s) of the relation has to be checked. Here, attribtues A,B,C are not present in the right hand side of the functional dependencies. Thus, closure of {A, B, C} = {A, B, C}+ = {A, B, C, D, E, F}

So, {A, B, C} is the candidate key.

Now, in both of the functional dependencies, the part of the key is determining something, i.e. part of the key {B,C} is defining some other attribtues, as well as part of the key {A} is determining some other attributes. Thus, partial dependency is present here. (in 2NF, partial dependency is removed)

So, the given relation is in 1NF.
Highest Normal Form: 1NF

Question 2:

Given relation: R [A, B, C, D, E, F, G, H]
Functional dependencies:
{A, B, C} -> {D, E, F, G, H}
{G, H} -> {A, B, C}

Explanation: Here, the keys are, {A,B,C} and {G,H} , which can determine all the attributes of the relation R. The keys can be considered to be superkey too.

Now, in both the functional dependencies, the left hand side is the superkey. According to the definitions of normal forms, if functional dependency X->Y is defined where X is a superkey, then the relation is said to be in BCNF.

Here, in both the functional dependencies, superkeys are determining other attributes. So, the relation R should be in BCNF.

Highest Normal Form: BCNF.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Exercise #4 Using the Functional Dependencies, F = {A → BC ; CD → E ;...
Exercise #4 Using the Functional Dependencies, F = {A → BC ; CD → E ; B→D ; E→A} a) Compute the closure of F (F+). b) Is true / false : F ⊨  E → BC? c) Provide the minimal cover Fc (min(F)) using steps shown in the class. d) List of the candidate keys for R
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A,...
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A, C→AE}. For the following relations resulting from a possible decomposition of R, identify the non-trivial functional dependencies which can be projected to each of the decomposed relations. a) S(ABC) b) T(BCE) c) U(ABDE
Suppose we have the following relation R with composite primary key {A,B} together with the set...
Suppose we have the following relation R with composite primary key {A,B} together with the set FD of functional dependencies: R(A,B,C,D,E,F,G). FD = { C -> G, E -> B, A -> D, AB -> C, AB -> D, AB -> E. AB -> F, AB -> G } Draw the initial dependency diagram using the above information. The relation from part a) is in first normal form. Using the techniques described in the lecture, convert it to 2NF by...
There are the set of FD for a Relation R(A, B,C,D,E,F,G) F= (A->B, BC->DE, AEF->G, AC->DE)...
There are the set of FD for a Relation R(A, B,C,D,E,F,G) F= (A->B, BC->DE, AEF->G, AC->DE) Then a) What are the Candidate keys for R? Justify your answer. b) Is R in BCNF? Justify your answer. c) Give a 3NF decomposition of this Relation. d) Is your answer above is Lossless join and Dependency Preserving.?
Suppose that 70% of all Americans agree that a candidate is not trustworthy. A survey finds...
Suppose that 70% of all Americans agree that a candidate is not trustworthy. A survey finds the 116 out of 200 agree that a candidate is not trustworthy. How likely is the result above to happen, if the sample is representative of the population? Choose the best answer. It is very likely It is somewhat likely It is unlikely It is very unlikely An Article describes results of a survey on the topic of college students in the US injuring...
Match each event to the phase in which it occurs.       -       A....
Match each event to the phase in which it occurs.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.    Prophase 1       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.   ...
.Sketch out the structure and name the functional group for each compound below: a) C2H6 b)...
.Sketch out the structure and name the functional group for each compound below: a) C2H6 b) C2H2 c) CH3I d) C6H6 e) C2H7N f) C3H7NO g) C3H6 ____________ or ______________ h) C3H8O ____________ or _____________ i) C3H6O ___________ or _____________ j) C3H6O2___________ or ____________
Let S = {A, B, C, D, E, F, G, H, I, J} be the set...
Let S = {A, B, C, D, E, F, G, H, I, J} be the set consisting of the following elements: A = N, B = 2N , C = 2P(N) , D = [0, 1), E = ∅, F = Z × Z, G = {x ∈ N|x 2 + x < 2}, H = { 2 n 3 k |n, k ∈ N}, I = R \ Q, J = R. Consider the relation ∼ on S given...
A and B are subsets of U, and A∩B, A∩B′, A′∩B, and A′∩B′ are each nonempty....
A and B are subsets of U, and A∩B, A∩B′, A′∩B, and A′∩B′ are each nonempty. Select ALL of the following which form partitions of U. A. A,B,A∩B B. A∩B,A∩B′,B∩A′,A′∩B′ C. A∪B,A∩B D. A,A′ E. A,B′ F. A∪B,A′∩B′ G. A,B∩A′,A′∩B′ H. B,A′ I. B,B′ J. A,B
For each of the following bases, identify its conjugate acid.       -       A....
For each of the following bases, identify its conjugate acid.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.       O.    HSO3-       -       A.       B.       C.       D.       E.      ...