Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment is about Normalization 1NF, 2NF, 3NF I feel as though I am missing something with this and am confused. Have done a good

This assignment is about Normalization 1NF, 2NF, 3NF I feel as though I am missing something with this and am confused.

Have done a good amount of this, but feel like I am doing it wrong. Want to continue to try at this, but would like to have an answer key to look off of. Thank you.

1. Pharmacy(patient_id, patient_name, address, (Rx_num, trademark_name, generic_name, (filldate, num_refills_left), num_refills))

Functional Dependencies:

patient_id patient_name, address

patient_id, Rx_num trademark_name, generic_name

Rx_num num_refills

Rx_num, filldate num_refills_left

  1. Is this relation in 1NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

Pharmacy(patient_id, patient_name, address, Rx_num, trademark_name, generic_name, filldate, num_refills_left, num_refills)

This is in 1NF because their primary keys and there are no repeating groups.

(b) Is this relation in 2NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(c) Is this relation in 3NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

2. Company(EmpID, EmpName, EmpAddr, (ProjID, ProjName, MgrID, MgrName, HoursWorked))

Functional Dependencies:

EmpID EmpName, EmpAddr, ProjID

ProjID ProjName, MgrID, MgrName

EmpID, ProjID HoursWorked

MgrID MgrName

(a) Is this relation in 1NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(b) Is this relation in 2NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(c) Is this relation in 3NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

3. Property(id, county, lotNum, lotArea, price, taxRate, (datePaid, amount))

Functional Dependencies:

id county, lotNum, lotArea, price, taxRate

lotArea price

county taxRate

datePaid amount

(a) Is this relation in 1NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(b) Is this relation in 2NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(c) Is this relation in 3NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

4. StockExchange(Company, Symbol, HQ, Date, ClosePrice)

Functional Dependencies:

Symbol, Date Company, HQ, ClosePrice

Symbol Company, HQ

Symbol HQ

(a) Is this relation in 1NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(b) Is this relation in 2NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

(c) Is this relation in 3NF? If not, write an explanation of why it isnt, then make the changes necessary to fix it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions

Question

1. Does your voice project confidence? Authority?

Answered: 1 week ago