Question

In: Computer Science

covert the schema into 3NF. TableC (a1,a2,a3,a4,a5) functionally dependencies: a1 --> {a2,a3,a5} a4 --> {a1,a2,a3,a5} a3...

covert the schema into 3NF.

TableC (a1,a2,a3,a4,a5)

functionally dependencies:

a1 --> {a2,a3,a5}

a4 --> {a1,a2,a3,a5}

a3 -->{a5}

Answer:

Relation1:

Relation2:

Solutions

Expert Solution

Solution:

Given,

=>Relation = C(a1, a2, a3, a4, a5)

=>Set of functional dependencies = {a1 -> a2a3a5, a4 -> a1a2a3a5, a3 -> a5}

Explanation:

Finding candidate keys:

=>There is no attribute "a4" at the right hand side part of any of the given functional dependencies so attribute "a4" must be present in every candidate key as candidate key has ability to derive all the attributes of the relation.

=>(a4)+ = a1a2a3a4a5

=>As attribute closure of a4 contains all the attributes of the relation so a4 is the only candidate key and if we include any other attribute with a4 then it will be super key.

=>Candidate key = {a4}

Finding normal form of relation:

=>Relation C is in 1 NF because there is no multivalued or complex attribute in the relation.

=>Relation is also in 2 NF because there is no partial functional dependencies of type X -> Y where X is proper subset of candidate key and Y is non prime attribute.

=>Relation C is not in 3 NF because all the functional dependencies are not of type X -> Y where either X is super key or Y is prime attribute.

=>Functional dependencies voilating 3 NF = {a1 -> a2a3a5, a3 -> a5}

Converting into 3 NF:

=>C1(a1, a2, a3, a5) with functional dependencies = {a1 -> a2a3a5}

Candidate key = {a1}

=>C2(a3, a5) with functional dependency = {a3 -> a5}

Candidate key = {a3}

=>C3(a1, a2, a3, a4, a5) with functional dependency = {a4 -> a1a2a3a5}

Candidate key = {a4}

=>Now relations are in 3 NF.

I have explained each and every part with the help of statements attached to the answer above.


Related Solutions

Let's say there is a group of five receptors (A1,A2,A3,A4,A5) that are expressed in various types...
Let's say there is a group of five receptors (A1,A2,A3,A4,A5) that are expressed in various types of tissues on the human body. But the A1 receptor, is the only family expressed in 1 type of cell. How does the A1 receptor but not the other A receptors are expressed on the cell?
Covert the schema into 2NF and 3NF TableD (D1,D2,D3,D4,D5) functionally dependencies: D4 --> D2 Answer: Relation1:...
Covert the schema into 2NF and 3NF TableD (D1,D2,D3,D4,D5) functionally dependencies: D4 --> D2 Answer: Relation1: Relation2:
Consider the following eight examples: A1 = (4,20), A2 = (4,10), A3 = (16,8), A4 =...
Consider the following eight examples: A1 = (4,20), A2 = (4,10), A3 = (16,8), A4 = (10,16), A5 = (14,10), A6 = (12,8), A7 = (2,4), A8 = (8,18) The distance function is Euclidian distance. Use single-link, complete-link agglomerative clustering, and centroid techniques to cluster these examples. Show your calculations and draw the dendrograms for each technique.
Find an arithmetic code for a symbol p4p4p3 for the source alphabet {a1, a2, a3, a4,...
Find an arithmetic code for a symbol p4p4p3 for the source alphabet {a1, a2, a3, a4, a5}, with symbol probabilities p1 = 0.11, p2 = 0.05, p3 = 0.10, p4 = 0.70, and p5 = 0.04. Show the work please.
For the arithmetic progression a1, a2, a3 .......... if a4/a7 = 2/3. Find a6/a8 ?
For the arithmetic progression a1, a2, a3 .......... if a4/a7 = 2/3. Find a6/a8 ?
Let A = {a1, a2, a3, . . . , an} be a nonempty set of...
Let A = {a1, a2, a3, . . . , an} be a nonempty set of n distinct natural numbers. Prove that there exists a nonempty subset of A for which the sum of its elements is divisible by n.
Let A0.A1,A2,A3,A4 devide a unit circle (circle of radius one) into five equal parts. Prove that...
Let A0.A1,A2,A3,A4 devide a unit circle (circle of radius one) into five equal parts. Prove that the chords A0 A1, A0 A2 satisfy: (A0 A1 * A0 A2)^2 = 5.
Store Monthly Profit Monthly Advertising expenditure A1 $13,593.02 $1,710.00 A2 $23,896.73 $1,983.00 A3 $9,932.64 $952.00 A4...
Store Monthly Profit Monthly Advertising expenditure A1 $13,593.02 $1,710.00 A2 $23,896.73 $1,983.00 A3 $9,932.64 $952.00 A4 $9,100.41 $1,009.00 A5 $15,220.08 $2,315.00 A6 $33,900.67 $2,197.00 A7 $6,935.36 $934.00 A8 $10,112.62 $2,375.00 A9 $9,155.14 $1,065.00 A10 $8,513.94 $812.00 A11 $7,933.25 $1,052.00 A12 $11,388.13 $2,234.00 A13 $26,299.72 $2,962.00 A14 $21,423.87 $1,699.00 A15 $21,430.21 $1,991.00 A16 $19,984.96 $2,181.00 A17 $11,575.09 $1,831.00 A18 $18,900.44 $1,819.00 A19 $21,815.24 $2,394.00 A20 $35,642.73 $2,296.00 If Crusty’s is considering spending $1750 on advertising what is the 95% prediction interval...
For each of the following sequences find a functionansuch that the sequence is a1, a2, a3,...
For each of the following sequences find a functionansuch that the sequence is a1, a2, a3, . . .. You're looking for a closed form - in particular, your answer may NOT be a recurrence (it may not involveany otherai). Also, while in general it is acceptable to use a "by cases"/piecewise definition, for this task you must instead present a SINGLE function that works for all cases.(Hint: you may find it helpful to first look at the sequence of...
Alternating Series Test. Let (an) be a sequence satisfying (i) a1 ≥ a2 ≥ a3 ≥...
Alternating Series Test. Let (an) be a sequence satisfying (i) a1 ≥ a2 ≥ a3 ≥ · · · ≥ an ≥ an+1 ≥ · · · and (ii) (an) → 0. Show that then the alternating series X∞ n=1 (−1)n+1an converges using the following two different approaches. (a) Show that the sequence (sn) of partial sums, sn = a1 − a2 + a3 − · · · ± an is a Cauchy sequence Alternating Series Test. Let (an) be...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT