For each relation:
a) List Functional Dependencies.
b) Based on the given primary key, is the relation in 1NF, 2NF, or 3NF? Why or why not?
c) Normalize the relation successively into 3NF, if it is not already in 3NF.
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Normalization :
Example :Consider relation given in the question.
First Normal Form (1NF) :
Given relation is in the first normal form because all columns are automic in nature and no duplicate columns exists.
Second Normal Form (2NF) :
a) List Functional Dependencies :
FacNo==> FacName
DeptNo==>DeptName, DeptLoc
InsurPlanNo==>InsurPlanDesc
Here need to identify new tables like
Below is the table details
1.Table Name :Faculty
Schema :Faculty(FacNo, FacName)
FD :FacNo,==>FacName
2.Table Name :Department
Schema :Department(DeptNo,DeptName, DeptLoc)
FD :DeptNo==>DeptName, DeptLoc
3.Table Name :Insurance
Schema :Insurance (InsurPlanNo, InsurPlanDesc)
FD :InsurPlanNo==> InsurPlanDesc
Third Normal Form (3NF):
Here above table need to normalize into 3NF to remove transitive dependency.Below are tables in 3NF.
1.Table Name :Faculty
Schema :Faculty(FacNo, FacName)
FD :FacNo,==>FacName
2.Table Name :Department
Schema :Department(DeptNo,DeptName, DeptLoc)
FD :DeptNo==>DeptName, DeptLoc
3.Table Name :Insurance
Schema :Insurance (InsurPlanNo, InsurPlanDesc)
FD :InsurPlanNo==> InsurPlanDesc
4.Table Name :FacDeptInsurance
Schema :FacDeptInsurance(FacNo,DeptNo,InsurPlanNo)
*****************************
Relation II :ORDER(OrdNo, OrdDate, CustNo, PartNo, Qty, UnitPrice)
Given relation is in the 2NF because some of the columns contains transitive dependency that needs to be removed.
Below are tables in 3NF.
1.Table Name :Order
Schema :Order (OrdNo,OrdDate,CustNo)
FD :OrdNo==>OrdDate,CustNo
Here ordNo is primary key.Each order can have only one date but order can have more then one product and hence need to store product details with these order in another table called orderDetails.
2.Table Name :OrderDetails
Schema :OrderDetails(OrdNo,PartNo,Qty,UnitPrice)
FD:OrdNo,PartNo==>Qty,UnitPrice
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
For each relation: a) List Functional Dependencies. b) Based on the given primary key, is the...
List the functional dependencies
Is it in 1NF? Why? If it is not, normalize it to
1NF.
Is it in 2NF? Why? If it is not, normalize it to
2NF.
Is it in 3NF? Why? If it is not, normalize it to
3NF.
ClientID Name IName Phone C707 Jhony Irving 347-123-9899 C747 Riya Riply 718-321-8989 C787 Michael Jay 516-213-8899 C777 Layla Cool 613-919-2002 Street City ZIP Gender 187 NY 1001 M 199 PA 1002 F 202 LA 1003 M 105...
Decompose the given relation into relations in 2NF. For each of
the new relations, draw a functional dependency diagram,
and state if it is in 3NF and why. If your answer is no, describe
how to normalise the relation to be in 3NF
(c) The relation appointment is given below: appointment (patientID, patientName, patientAddress, aDate, aTime, nurseiD, nurseName, notes) where the primary key is underlined. It records the details of patient appointments with nurses. (i) Draw the functional dependency diagram...
Consider the following relation R, where {A, B} is its PK. Assume that R is in the first normal form (INF). R (A, B, C, D, E, F) Functional dependencies: FD1: BàC FD2: AàDE FD3: ABàF Why is this table not in 2NF? Specify which FDs make R violate 2NF. Normalize the data shown in this table to second normal form (2NF). Specify the primary and foreign key (if any) in each table of your 3NF relations. Normalize the data...
R = {Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,QJ} Given these functional dependencies: {Q5,Q6} > {Q7} {Q5} > {Q8,Q9} {Q6} > {QJ} {QJ} > {Q1, Q2} {Q8} > {Q3, Q4} {Q3} > {Q7, Q1, Q2, Q5, Q6} a. Identify 2 primary keys to this table b. Assuming it is in 1NF, explain why it is not in 2NF.Make the required adjustments to convert table to 2NF.Show primary key of each table c. Assuming it is in 1NF, explain why your 2NF table is not in 3NF....
1) Consider the relation R, with key and functional dependencies shown below. What Normal form is R in right now? Why is this the case? What actions would you take to normalize R to the next higher normal form? (Describe the steps) Follow the steps you described in the prior question to normalize R to the next higher form. Be sure to show all of the steps. Once you have normalized R, what normal forms are each the two new...
Language: SQL - Normalization and Functional
Dependencies
Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....
Identify, in the list below, a row in the result. Dragons B) Giants C) Lions D) Ham Fighters 26. If all function dependencies in a table are "very good" or "bad", the table is in A) 1NF B) 2NF C) 3NF D) BCNF 27·Determine the normal form for the relation R(ABCD) and FD's: AD ? C; D A) 1NF B) 2NF C) BCNF D) 3NF -28. Which of the following is not a candidate key for R(ABCD) FD's: BD ?...
The following is the relation notation of the Veterinary Office List. VETERINARY_OFFICE (PetID, PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName, ServiceDescription, ServiceDate, ServiceCharge) The functional dependencies are given below: PetID -> PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName OwnerID -> OwnerLastName, OwnerFirstName ServiceDescription -> ServiceCharge PetID, ServiceDate -> ServicedDescription, ServiceCharge Assumption: A pet belongs to only one owner, while an owner may have more than one pet. A pet receives at most one treatment on any given date. Use the functional dependencies...
(30 pts) Given R(a, b, c, d, e) with a key (a,b) and given the following set of functional dependencies F = { {a, b} → {c, d, e}, b → {d, e} }. Is R in 1NF? Justify your answer. Is R in 2NF? Justify your answer. Is R in 3NF? Justify your answer.
Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd Normal Form (BCNF) violations'? (c) Give a decomposition of R into BCNF based on the given functional dependencies. (d) Give a different decomposition of R into BCNF based on the given functional dependencies. (e) Give a decomposition of R into 3NF based on the given functional dependencies.
Consider a...