Question

In: Computer Science

The following question is based upon the BIRD relation below, which lists information about the birds...

The following question is based upon the BIRD relation below, which lists information about the birds of the USA . You can assume the data is representative. Note that scientific names are generally used worldwide for plants and animals to eliminate ambiguity, as common names can vary between countries. You have been asked to design a relational database based on this design. You know that there are problems with the current design and that it will need to be modified in order to work effectively. Answer the following questions.

a. What is the candidate key (or keys) of the relation, as it currently exists? What normal form is the relation in? Explain your reasoning.

b. Explain the problems with the existing design, in terms of the potential modification anomalies that it might exhibit.

c. Convert the relation to a set of relations in at least Third Normal Form (3NF). You only need to show the schema, not the data. Do not create any new attributes: work with the ones in the table. Give each of your new relations an appropriate name. Show all primary keys and foreign keys.

d. Explain how your new design addresses the problems you identified in (b). Also demonstrate that your set of relations has the dependency preserving and lossless join properties.

HABITAT GENUS SPECIES ORDER FAMILY FAMILY NAME COMMON NAME FOOD DISTRIBUTION CONSERVATION
desert melanerpes uropygialis Piciformes Picidae Woodpeckers Gila Woodpecker Omnivore Southwestern US Low concern
Forests Buteo platypterus Accipitriformes Accipitridae Hawks, Eagles and Kites Broad-winged Hawk Small animals Eastern US Low concern
Lakes and ponds Pandion haliaetus Accipitriformes Pandionidae Osprey Osprey Fish Northern US Low concern
Lakes and ponds Aix sponsa Anseriformes Anatidae Ducks, Geese and Waterfowl Wood Duck Insects Eastern US low concern
Lakes and ponds Aix sponsa Anseriformes Anatidae Ducks, Geese and Waterfowl Wood Duck Insects Northwest US Low concern
Lakes and ponds Gavia pacifica Gaviiformes Gaviidae Loons Pacific Loon Fish Pacific Coast Low concern
Lakes and ponds Pelecanus erythrorhynchos Pelecaniformes Pelecanidae Pelicans American White Pelican fish Central US low concern
Lakes and ponds Pelecanus erythrorhynchos Pelecaniformes Pelecanidae Pelicans American White Pelican Fish Southern Coast Low concern
Marshes Anser canagicus Anseriformes Anatidae Ducks, Geese and Waterfowl Emperor Goose Plants Northwest Coast Restricted range
Marshes Eudocimus albus Pelecaniformes Threskiornithidae Ibises and Spoonbills White Ibis Aquatic invertebrates Southeast US Low concern
Oceans Larus occidentalis Charadriiformes Laridae Gulls, Terns, and Skimmers Western Gull Fish Pacific Coast Low concern

Please help ^_^. My brain is fried, any help is appreciated!

Solutions

Expert Solution

PRIMARY KEY :

Habitat, Food, DIstribution, Genus

1NF SInce it Does not satisfies 2NF according to the Keys that we have like there should not be any partial dependencies Like

Habitat,Species=> Order

Check the Five attribute Genus, species, Order, Family, Family Name These Five attributes are repeating We can create a new relation for these two attributes and keep an id in the main table and by using that we can retrieve data

Problems With This Design :

For Example If we want to Change the Species for the Genus  Aix we need to update the two columns since there two Aix Genus, In The Same thing if we to change the Species of the Genus Pelecanus Again we need to repeat the same thing So It Creates a problem If we Update one and Forget to update Another Of the same Species This is an update Anamoly

Convert To 3NF

Birds(Habitat, Food, Distribution, Genus, Common Name, Conservation)

Genus =>Is a Derived Attribute of Table Family

Habitat, Food, Distribution =>Primary Key

Family(Genus, Species, Order, Family, Family Name)

Removing Species, Order, Family, Family Name To Remove Redundancy

Here Genus IS An Primary key By which we can Derive other Attributes

D Explanation

By Converting the given relation to the 3NF we solve the problem of redundancy of the Same  Genus, species, Order, Family, Family Name  

LossLess Decomposition :

Previously the dependency of the Habitat, Genus =>Order Now holds in the same Way like Habitat, Genus Are in the same Relation So we can Access the Order By accessing the Genus


Related Solutions

Which of the following is true about the origin of birds? Answers: Bird fossils from the...
Which of the following is true about the origin of birds? Answers: Bird fossils from the late cretaceous period show a loss of dinosaur characteristics. Feathers were first adapted for insulation and coevolved with endothermy. Archaeopteryx is an important "intermediate" between a dinosaur and a bird. They belonged to a group of bipedal dinosaurs called theropods.
Required information [The following information applies to the questions displayed below.] The controller for Tender Bird...
Required information [The following information applies to the questions displayed below.] The controller for Tender Bird Poultry, Inc. estimates that the company’s fixed overhead is $100,000 per year. She also has determined that the variable overhead is approximately $0.15 per chicken raised and sold. Since the firm has a single product, overhead is applied on the basis of output units, chickens raised and sold. Required: 1. Calculate the predetermined overhead rate under each of the following output predictions: (Round your...
QUESTION 4 Which of the two choices below are the reasons why the relation below is...
QUESTION 4 Which of the two choices below are the reasons why the relation below is not BCNF. in_dep (ID, name, salary, dept_name, building, budget ) with a functional dependency dept_name --> building, budget dept_name is not a superkey dept_name --> building, budget is not a trivial dependency id --> name, salary, dept_name is also a functional dependency It is not 3NF QUESTION 5 in_dep (ID, name, salary, dept_name, building, budget ) Choose the following decompositions of in_dep into BCNF...
the following question is based on the table information below. Assume that the data is populated...
the following question is based on the table information below. Assume that the data is populated with records: CREATE TABLE teachers ( emp_id bigserial, first_name varchar(25), last_name varchar(50), school varchar(50), hire_date date, salary numeric); SELECT first_name, last_name, school, salary FROM teachers WHERE hiredate > '2008-01-01' ORDER BY last_name ASC; Question 1) Will this query return an error? Question 2) If there is an error, what is causing the error? if there is not an error, leave blank.
Calculate the NOI of a property based upon the information provided below: Building area:                         10,500...
Calculate the NOI of a property based upon the information provided below: Building area:                         10,500 sqft Average base rents:                $26.00 psf NNN recoveries:                      $3.50 psf Vacancy rate:                          5.0% Operating expenses                $4.25 psf Percentage rent                      $4,000 per year Concessions                             3.0% Annual debt service                $188,400 per year
This simulation question available sources is based upon a true set of facts. The information contained...
This simulation question available sources is based upon a true set of facts. The information contained in the simulation question was What is the Relationship Between the Fraud Triangle and Financial Statement Fraud? - Required First, search the Internet or refer to textbooks to learn as much as you can about the Fraud Triangle. Then, answer the following: 2. How can the Fraud Triangle detect/prevent financial statement fraud? Discuss how each of the three elements of the Fraud Triangle can...
Question #6: Birds and Such, Inc. manufactures birdhouses and uses an activity-based costing system. The following...
Question #6: Birds and Such, Inc. manufactures birdhouses and uses an activity-based costing system. The following information is provided for the month of May: Activity Estimated Indirect Activity Costs Allocation Base Estimated Quantity of Allocation Base Materials handling $ 3,500 Number of parts 5,000 parts Assembling $12,000 Number of parts 5,000 parts Packaging $5,750 Number of birdhouses 1,250 birdhouses                         Each breadbox consists of 4 parts, and the direct materials cost per birdhouse is $7.00.                         What is the cost...
Based upon the following tasks, durations and predecessor relationships which of the following tasks is not...
Based upon the following tasks, durations and predecessor relationships which of the following tasks is not critical? 1, 10, N/A; 2,8,1; 3,5, 1; 4, 9, 1; 5, 6, 3; 6, 6, 2; 7, 11, 5; 8, 10, 6; 9, 9, 4; 10, 7, 9; 11, 10,( 7,8,10); a. 4 b. 9 c. 6 d. 10
Q4-2 This simulation question available sources is based upon a true set of facts. The information...
Q4-2 This simulation question available sources is based upon a true set of facts. The information contained in the simulation question was What is the Relationship Between the Fraud Triangle and Financial Statement Fraud? - Required First, search the Internet or refer to textbooks to learn as much as you can about the Fraud Triangle. Then, answer the following: 1. What is the Fraud Triangle? Discuss your understanding of the Fraud Triangle and give examples of financial statement fraud for...
Question 12 Please answer the following set of questions, based on the information provided below. The...
Question 12 Please answer the following set of questions, based on the information provided below. The data listed below give information for 10 middle-level managers at a particular company. The first column is years of experience [X] and the second column is annual salary (in thousands) [Y]. We are going to examine the relationship between salary in thousands [Y] and years of experience[X]. Below is the regression output. Manager#     (X)     (Y) 1 xx 66 2 xx 69 3...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT