Question

In: Computer Science

The following table belongs to a pet boarding company. Each pet that is kept has a...

  1. The following table belongs to a pet boarding company. Each pet that is kept has a type (species) and weight, an owner and the information where it is kept (which pen). The fee depends on the pen. It also depends on the owner because owners can have special rates.   

Pet_id

Type

Weight

Pen

Fee

Owner_id

O_name

2800

Cat

9.2

P02

20

11

Susan

1739

Cat

7.5

P01

25

28

Brett

9981

Dog

3.3

P02

30

29

Jason

  1. Identify the functional dependencies represented by the attributes shown in the table and choose the most appropriate (largest composite) primary key. Notation: pet_id -> type means pet_id determines the type.
  1. Based on the dependencies, convert the table into 3rd normal form by going through the standard procedure.

Solutions

Expert Solution

a. Functional dependencies as per given description:

Pet_id -> Type,Weight,Pen

Owner_id -> O_name

{Owner_id,Pen} -> Fee

Primary Key = {Pet_id Owner_id}

Explanation - Attribute set of {Pet_id Owner_id} generates all the attributes of the relation.

(Pet_id Owner_id)+ = {Pet_id Type Weight Pen Fee Owner_id O_name}

b. Conversion to 3rd Normal Form

Current relation is in First Normal Form as their are only single valued attributes.

The Relation is not in Second Normal Form because of partial dependency(Owner_id is a prime attribute and determines non prime attribute)

Tables after conversion to 2NF:

Table 1:

Primary Key = Pet_id

Pet_id -> Type,Weight,Pen

Pet_id Type Weight Pen

Table 2:

Primary Key = Owner_id

Owner_id -> O_name

Owner_id O_name

Table 3:

Primary Key = {Owner_id Pen}

{Owner_id,Pen} - > Fee

Owner_id Pen Fee

The above relation is in 3NF. (Their is no transitive dependency)


Related Solutions

The database for a pet supply company includes the following table, named tblCollar, that contains product...
The database for a pet supply company includes the following table, named tblCollar, that contains product data for pet collars. The ItemDesc and Color fields contain text. The ItemNum, Price, and Quantity fields contain numbers. ItemNum ItemDesc Color Price Quantity 2358 leather studded collar black 30.00 35 2693 leather collar brown 25.00 25 3547 striped collar red 20.00 75 3855 striped collar blue 15.00 42 3764 striped collar green 15.00 48 5782 solid collar pink 12.00 36 5785 solid collar...
Identify one B2B company or organization that fits each of the following descriptions and describe why each belongs in the category:
MAKRKETING ProblemIdentify one B2B company or organization that fits each of the following descriptions and describe why each belongs in the category:ProducerResellerGovernmentNonprofit
Experience for dog boarding and doggy daycare, include relevant details about your pet care experience
Experience for dog boarding and doggy daycare, include relevant details about your pet care experience, special skills and what sets you apart from other sitters and walkers.
Perfect Pet Collar Company makes custom leather pet collars. The company expects each collar to require...
Perfect Pet Collar Company makes custom leather pet collars. The company expects each collar to require 2.10 feet of leather and predicts leather will cost $3.70 per foot. Suppose Perfect Pet made 60 collars during February. For these 60 collars, the company actually averaged 2.30 feet of leather per collar and paid $3.20 per foot. Required: 1. Calculate the standard direct materials cost per unit. (Round your answer to 2 decimal places.) Standard Direct Materials per Collar 2. Without performing any calculations, determine...
Perfect Pet Collar Company makes custom leather pet collars. The company expects each collar to require...
Perfect Pet Collar Company makes custom leather pet collars. The company expects each collar to require 1.5 feet of leather and predicts leather will cost $2.50 per foot. Suppose Perfect Pet made 60 collars during February. For these 60 collars, the company actually averaged 1.75 feet of leather per collar and paid $2.00 per foot. 1. Calculate the standard direct materials cost per unit. (Round your answer to 2 decimal places.) 2. Without performing any calculations, determine whether the direct...
A county dog control officer found that 21% of homes kept one dog as a pet,...
A county dog control officer found that 21% of homes kept one dog as a pet, 4% had two dogs, and 1% had three or more. If a salesman visits two homes at random, what’s the probability he encounters No dogs? Some dogs? Dogs in each home? More than one dog in each home?
Assume the following data for Pet Gear Company: (the​ assumptions.) • Pet Gear ​(PG​) does not...
Assume the following data for Pet Gear Company: (the​ assumptions.) • Pet Gear ​(PG​) does not make any sales on credit. PG sells only to the​ public, and accepts cash and credit cards. Of its​ sales, 90% are to customers using credit​ cards, for which PG gets the cash right​ away, less a 4​% transaction fee. • Purchases of materials are on account. PG pays for half the purchases in the period of the​ purchase, and the other half in...
20 people line up to board an airplane. Each has a boarding pass with assigned seat....
20 people line up to board an airplane. Each has a boarding pass with assigned seat. However, the first person to board has lost his boarding pass and takes a random seat. After that, each person takes the assigned seat if it is unoccupied, and one of unoccupied seats at random otherwise. Write an efficient MPI program with 2 distributed nodes to calculate the percentage of people who occupied their assigned seats and percentage of people who occupied seats randomly.(...
Perfect Pet Collar Company makes custom leather pet collars. Thecompany expects each collar to require...
Perfect Pet Collar Company makes custom leather pet collars. The company expects each collar to require 1.60 feet of leather and predicts leather will cost $2.70 per foot. Suppose Perfect Pet made 50 collars during February. For these 50 collars, the company actually averaged 1.95 feet of leather per collar and paid $2.20 per foot.Required: 1. Calculate the standard direct materials cost per unit. (Round your answer to 2 decimal places.) Standard Direct Materials per Collar 2. Without performing any calculations, determine...
Love Your Pet, Inc. (LPI) is a pet food company located in rural Quebec. LPI has been operating for years as a distributor of pet food but in the last year has begun to
Love Your Pet, Inc. (LPI) is a pet food company located in rural Quebec. LPI has been operating for years as a distributor of pet food but in the last year has begun to manufacture raw dog food. In the current year, LPI has been certified by the Canadian Association of Raw Pet Food Manufacturers, (CARPFM). This organization believes that companion animals benefit greatly from a diet more closely related to their hereditary and biological makeup. Certification was completed in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT