Question: The Task We discussed in class that a relational database designed in a poor way will allow for anomalies to occur. This is undesirable, so
The Task
We discussed in class that a relational database designed in a poor way will allow for anomalies to occur. This is undesirable, so we use normalization
to prevent them. Several relations are provided below, along with their functional dependencies. Answer the questions provided and fix what is broken.
Perform only the current step for each question, ie when fixing First Normal Form NF fix only NF leaving the NF and NF violations untouched
until the question that asks about them.
The Questions
For each of the below, part b refers to the results of part a and part c refers to the results of part b any changes made during the previous steps should
be considered in the steps that follow. Each of these is worth points for a total of
RA B C D E F G H
Functional Dependencies:
A D E
C G
A C H F
a Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in NF If not, explain why not, then make the necessary changes to fix it
c Is this relation in NF If not, explain why not, then make the necessary changes to fix it
Propertyid county, lotNum, lotArea, price, taxRate, datePaid amount
Functional Dependencies:
id county, lotNum, lotArea, price, taxRate
lotArea price
county taxRate
id datePaid amount
a Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in NF If not, explain why not, then make the necessary changes to fix it
c Is this relation in NF If not, explain why not, then make the necessary changes to fix it
Pharmacypatientid patientname, address, Rxnum, trademarkname, genericname, filldate numrefillsleft numrefills
Functional Dependencies:
patientid patientname, address
patientid Rxnum trademarkname, genericname
Rxnum numrefills
Rxnum, filldate numrefillsleft
a Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in NF If not, explain why not, then make the necessary changes to fix it
c Is this relation in NF If not, explain why not, then make the necessary changes to fix it
CompanyEmpID EmpName, EmpAddr, ProjID ProjName, MgrID, MgrName, HoursWorked
Functional Dependencies:
EmpID EmpName, EmpAddr
ProjID ProjName, MgrID, MgrName
EmpID, ProjID HoursWorked
MgrID MgrName
a Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in NF If not, explain why not, then make the necessary changes to fix it
c Is this relation in NF If not, explain why not, then make the necessary changes to fix it
StockExchangeCompany Symbol, HQ Date, ClosePrice
Functional Dependencies:
Symbol, Date Company, HQ ClosePrice
Symbol Company, HQ
CSCI Assignment Fall of
Symbol HQ
a Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in NF If not, explain why not, then make the necessary changes to fix it
c Is this relation in NF If not, explain why not, then make the necessary changes to fix it
draw it i need diagram not the steps i need the diagram.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
