Question

In: Computer Science

This table is used by Mighty Paws Veterinary Clinic. Inspect this table and answer questions below...

This table is used by Mighty Paws Veterinary Clinic. Inspect this table and answer questions below and answer the following 4 questions:

PetId

PetName

OwnerName

OwnerPhone

PetType

Legs

CanFly

Favorite food

100

Fluffy

Mary Smith

614-897-5496

Cat

4

No

MeowMix,

FancyCatTM

101

Casper

Mary Smith

614-897-5496

Cat

4

No

MeowMix

102

Lori

Jim Larson

740-851-0023

Parrott

2

Yes

Seeds

103

Marty

Kim Jones

212-505-8578

Python

0

No

104

Oscar

Tim Wang

614-410-5535

Dog

4

No

IAMS, Tim’s new sneakers

    1. List anomalies and provide examples using this table to support your point.
    1. Is this table in 1NF, 2NF, 3NF, BCNF?
    1. List functional dependencies? Are they partial or transitive? Explain.
    1. Complete all normalization steps (if applicable) in order to bring this design to BCNF.

Solutions

Expert Solution

A. The different anamoly present are update, Delete and Updation Anamoly.

Update Anamaly occur when updation of a certain attribute instance leads to inconsistency. For example if we update number of legs of cat to 3 , then it might lead to data inconsistency as there can be more than one cat and there is dependency between petType and no of legs

Deletion anamaly might lead to deletion of a record where it should not be deleted. Here if we delete petType Dog, then Owner information will also be deleted from database and all its related information will be deleted.

Insertion Anamaly happens when we are not able to add data to database because we of some missing data. If we have one more petType but no owner, then this cannot be added to added to database.

B. No the given relation is not in 1NF since it contains multivalued attribute favorite food. Since it is not in 1NF, it is not in 2NF , 3NF as well.

C. The primary key for the given relation is {PetID}. There is no FD of type X->Y where X is primary attribute. Therefore there is no partial Functional dependency.

Transitive Functional dependency is of type x->y where x is non key. Here transitive Functional dependency are

OwnerName -> OwnerPhone

PetType -> legs, canfly

D.

The relation contains multivalued attribute Favourite Food. Thus it is not in 1NF. Decomposing it to 1 NF

R1 =(PetID, FavoriteFood)

R2 = (PetID, PerName, OwnerName, OwnerPhone, PetType, Legs, CanFly)

Now R1 is in 2NF , 3NF and in BCNF.

R2 is not in 3NF since it contains partial FD. Decomposing it to 3NF ,

R21 = (OwnerName, OwnerPhone)

R22 =(PetType, legs, canfly)

R23 =(PetID, pet name, ownerName, petType)

Now here R1, R21, R22 and R23 are in 3NF and in BCNF as well.

If you have any questions comment down and please? upvote thanks


Related Solutions

During October 2016, Paws Veterinary Clinic completed the following transactions: Prepare the trial balance of Paws,...
During October 2016, Paws Veterinary Clinic completed the following transactions: Prepare the trial balance of Paws, at October 31, 2016. Oct. 1 Paws received $30,000 cash and issued common shares to shareholders 4 Purchased supplies, $1,000, and equipment, $2,600 on account 5 Performed checkup services, and received cash, $1,500 7 Paid cash to acquire land for an office site, $22,000 11 Performed a surgery on a sick cat, and billed the customer $500 16 Paid for the equipment, purchased Oct...
Question 4 During October 2016, Paws Veterinary Clinic completed the following transactions: Oct. 1 Paws received...
Question 4 During October 2016, Paws Veterinary Clinic completed the following transactions: Oct. 1 Paws received $30,000 cash and issued common shares to shareholders 4 Purchased supplies, $1,000, and equipment, $2,600 on account 5 Performed checkup services, and received cash, $1,500 7 Paid cash to acquire land for an office site, $22,000 11 Performed a surgery on a sick cat, and billed the customer $500 16 Paid for the equipment, purchased Oct 4 on account 17 Paid the telephone bill,...
The table below will be used for the following five questions. The table represents the mean...
The table below will be used for the following five questions. The table represents the mean and standard deviation graduation rates, by candidate age, for a population of flight academies. ( No more data was provided). If you only know one method to solve a problem, please don't add a comment asking for more data! Age Mean Graduation Rate Standard Deviation 16 76.6 1.8 17 74.2 1.8 18 79.5 1.7 19 79.6 2.1 20 81.2 2.1 21 84.2 2.2 22...
The following table is used for a number of questions below. The table above shows the...
The following table is used for a number of questions below. The table above shows the responses of a survey of teenagers aged 14-18 when asked at what age they thought they would become financially independent. Age of Financial Independence Number of Responses 16-20 191 21-24 467 25-27 244 28 or older 42 What do the teens expect is the probability of being financially independent before age 25? A recent Gallup poll found that only 14 percent of 24- to...
Use the table below to answer the next two questions. The table below shows the relationship...
Use the table below to answer the next two questions. The table below shows the relationship between the number of workers hired and production. Wage is fixed at $49. How many workers should be hired to maximize profits if the product is sold at the price of $5 per unit? 2 3 4 5 Labor Quantity of Product Marginal Product of Labor Wage 1 8 8 49 2 20 12 49 3 36 16 49 4 46 10 49 5...
Use the table below to answer the questions below. The following prices are for call and...
Use the table below to answer the questions below. The following prices are for call and put options on a stock priced at $50.25. The March options have 90 days remaining and the June options have 180 days remaining. In your profit answers below, assume that each transaction is scaled by 100, reflecting the size of option contracts. Calls Puts Strike March June March June 45 6.85 8.45 1.20 2.15 50 3.90 5.60 3.15 4.20 55 1.95 3.60 6.15 7.00...
Answer the questions and Identify the table that should be used for each of the following...
Answer the questions and Identify the table that should be used for each of the following situations in the space provided, then show the calculations to solve the problem below. FV – Future Value of 1 PV – Present Value of 1 FVA – Future Value of an Annuity PVA – Present Value of an Annuity __________ 5. An investment firm has determined that the market price of a 5-year $100,000 bond yielding 6% is $104,212. This is based on...
Values in the table below are approximate. Use these to answer the following questions and to...
Values in the table below are approximate. Use these to answer the following questions and to compare health impact of the two diseases. R-naught Incubation period Contagious Period COVID-19 2.5 10 days 2-3 days before symptoms to 10 days after Rabies 1.5 Several months From symptoms to 10 days after symptoms Recall that R-naught is the average number of additional cases that directly result from a single person bringing it into a fully susceptible community. Below, compare in the impact...
10. Use the table to answer the questions below. # of late flights # of on...
10. Use the table to answer the questions below. # of late flights # of on time flights Detla Airlines 6 33 Air France 5 43 a) If two flights are randomly selected (with replacement) what is the probability that they are both Sun Country flights? b) If one flight is randomly selected, what is the probability that it is a late flight or a Delta flight? c) If one flight is randomly selected, what is the probability that it...
Use the table below to answer questions 4.5 – 4.7: This table contains the same client...
Use the table below to answer questions 4.5 – 4.7: This table contains the same client data as the first table. This time, though, the instructor is interested in knowing how his clients’ other activities might impact their average cycling speed in spin class. He notes that half of his clients also ride bikes outside during the week, while the other half of his clients do not bike anywhere except spin class. Rides Outside Only Spin Rides Outside Only SPin...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT