Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Task: Normalization in computer science databases We discussed in class that a relational database designed in a poor way will allow for anomalies to
The Task: Normalization in computer science databases
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 leaving the and 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 bany changes made during the previous steps should
be considered in the steps that follow. Each of these is worth points for a total of
CompanyEmpID EmpName, EmpAddr, ProjID ProjName, MgrID, MgrName, HoursWorked
Functional Dependencies:
EmpID EmpName, EmpAddr
ProjID ProjName, MgrID, MgrName
EmpID, ProjID longrightarrow Hours Worked
MgrID longrightarrow MgrName
Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in 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 longrightarrow patientname, address
patientidRxnum longrightarrow trademarkname, genericname
Rxnum numrefills
Rxnum, filldate numrefillsleft
Is this relation in If not, explain why not, then make the necessary changes to fix it
b Is this relation in If not, explain why not, then make the necessary changes to fix it
C Is this relation in If not, explain why not, then make the necessary changes to fix it
Functional Dependencies:
Is this relation in NF If not, explain why not, then make the necessary changes to fix it
b Is this relation in 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 longrightarrow Company, ClosePrice
Symbol Company, HQ
Symbol
Is this relation in If not, explain why not, then make the necessary changes to fix it
b Is this relation in If not, explain why not, then make the necessary changes to fix it
C Is this relation in If not, explain why not, then make the necessary changes to fix it
Propertyid county, lotNum, lotArea, price, taxRate, datePaid amount
Functional Dependencies:
id longrightarrow county, lotNum, lotArea, price, taxRate
lotArea longrightarrow price
county longrightarrow taxRate
id datePaid longrightarrow amount
Is this relation in If not, explain why not, then make the necessary changes to fix it
b Is this relation in If not, explain why not, then make the necessary changes to fix it
Is this relation in If not, explain why not, then make the necessary changes to fix it
WHAT TO TURN IN
Answers to the questions should be submitted via Blackboard as a PDF with your name and section at the top of each page.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started