Question

In: Computer Science

In each of these exercises, consider the relation, CKs, and FDs. Determine if the relation is...

In each of these exercises, consider the relation, CKs, and FDs. Determine if the relation is in BCNF, and if not in BCNF give a non-loss decomposition into BCNF relations. The last 5 questions are abstract and give no context for the relation nor attributes.

1. Consider a relation Player which has information about players for some sports league. Player has attributes id, first, last, gender. id is the only CK and the FDs are:
idfirst
idlast
idgender

Player-sample data

ID First Last gender
1 Jim Jones Male
2 Betty Smith Female
3 Jim Smit Male
4 Lee Mann Male
5 Samantha McDonald Female

2.Consider a relation Employee which has information about employees in some company. The employee has attributes id, first, last, sin (social insurance number) where id and sin are the only CKs, and the FDs are:
idfirst
idlast
sinfirst
sinlast
idsin
sinid

Employee – sample data

ID First Last SIN
1 Jim Jones 111222333
2 Betty Betty 333333333
3 Jim Smith 456789012
4 Lee Mann 123456789
5 Samantha McDonald 987654321
  • Complete the exercise to achieve 3NF. Describe in your own words these normalization concepts into your saved document file.
    • You may display this information in table format (as posted in the exercise) or use DBDL design format.

Solutions

Expert Solution

Relation A -> B is said to be in BCNF, if and only if A is the primary key/candidate key for every FD(functional dependency) in the given relation (A -> B)

(1)

Here as given id is the only CK(candidate key)
The FDs are:-
-"id -> First" is in BCNF (id is Candidate key)
-"id -> Last" is in BCNF (id is Candidate key)
-"id -> Gender" is in BCNF (id is Candidate key)

Since all the FDs (functional dependency) is in BCNF, the given relation is in BCNF.
   Here id determines the First and First determines gender, so it is not in 3NF because of transitive FD

(2)

The given CKs are id and sin and here each CK have unique values , so any of both can act as primary key
And the FDs are :-
-"id -> first" is in BCNF, (id is a candidate key)
-"id -> last" is in BCNF, (id is a candidate key)
-"sin -> first" is in BCNF, (id is a candidate key)
-"sin -> last" is in BCNF, (id is a candidate key)
-"id -> sin" is in BCNF, (id is a candidate key)
-"sin -> id" is in BCNF, (id is a candidate key)

Since all the FDs (functional dependency) is in BCNF, the given relation is in BCNF.
     Here it can be said that it is in 3NF because all other attributes are dependent on primary key (id or sin)
   


Related Solutions

consider the relation where each elements of the domain are the vowels of the alphabet. If...
consider the relation where each elements of the domain are the vowels of the alphabet. If the elements of the range are all the elements of the subset of {P,Q,R} and each domain element is associated with an image, can this relation be a function? Can it be one to one, justify your answer.
For each relation below, determine the following.(i) Is it a function? If not, explain why not...
For each relation below, determine the following.(i) Is it a function? If not, explain why not and stop. Otherwise, answer part (ii).(ii) What are its domain and image? (a){(x, y) :x, y∈Z, y- 2x}. (b){(x, y) :x, y∈Z, xy- 0}. (c){(x, y) :x, y∈Z, y-x2}. (d){(x, y) :x, y∈Z, x|y}. (e){(x, y) :x, y∈Z, x+y= 0}. (f){(x, y) :x, y∈R, x2+y2= 1}.
For the following exercises, consider the graph of the function f and determine where the function is continuous/ discontinuous and differentiable/not differentiable.
For the following exercises, consider the graph of the function f and determine where the function is continuous/ discontinuous and differentiable/not differentiable.
For the following exercises, consider the graph of the function f and determine where the function is continuous/ discontinuous and differentiable/not differentiable.
For the following exercises, consider the graph of the function f and determine where the function is continuous/ discontinuous and differentiable/not differentiable.
Determine whether the given relation is an equivalence relation on the set. Describe the partition arising...
Determine whether the given relation is an equivalence relation on the set. Describe the partition arising from each equivalence relation. (c) (x1,y1)R(x2,y2) in R×R if x1∗y2 = x2∗y1.
Determine whether or not the following is an equivalence relation on N. If it is not,...
Determine whether or not the following is an equivalence relation on N. If it is not, determine which property fails. If it is, prove it. (a) x ∼ y if and only if x|y (x evenly divides y). (b) x ∼ y if and only if the least prime dividing x is the same as the least prime dividing y. In this case, instead if using N, use the set A = {2,3,4,5,...}. (c) x∼yifandonlyif|x−y|<5. (d) x∼yifandonlyifx=4. 2. Prove that...
For the following exercises, sketch the graph of each function for two full periods. Determine the amplitude, the period, and the equation for the midline.
For the following exercises, sketch the graph of each function for two full periods. Determine the amplitude, the period, and the equation for the midline.
Determine if the binary relation <= is a partial order on A in the following cases:...
Determine if the binary relation <= is a partial order on A in the following cases: (a) A = N × N and (a1, b1) (a2, b2) ⇔ a1 <= a2 for (a1, b1),(a2, b2) ∈ A (b) X = {1, 2, 3, 4}, A = P(X) and a <= b ⇔ #a <= #b for a, b ∈ A (Here #a denotes the number of elements in the set a) (c) A = N and a <= b ⇔...
(1) In each part, decide whether or not the described relation is an equivalence relation. Explain...
(1) In each part, decide whether or not the described relation is an equivalence relation. Explain your answers. (a) A is the set of all residents of the United States. The relation ∼ on A given by: x ∼ y if x, y are in the same state at noon on November 3rd. (b) U is the set of all undergraduates at the University of Oregon. The relation ∼ on U given by: x ∼ y if x, y are...
what are the main factors that determine health in relation to global health?
what are the main factors that determine health in relation to global health?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT