Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Normalization

Practice on topic of Normalization

For each of the following questions, give the revised table definition(s).  You must support your definitions with an explanation of why you made the changes.  This explanation must be specific to the current problem, not just a general explanation.

Please  for EACH and EVERY table (including intermediate ones) you MUST underline the primary key AND list all the FDs.

1. Given the following table definition and FD constraints.

Shipment (ShipNum, ShipperName, ShipperContact, ShipperFax, PackageNum, PackDepartureDate, PackArrivalDate, PackDestinaltionCity, PackShipCost, InsuranceValue, InsurerCompany, InsurerAddress)

FDs = {ShipNum → ShipperName, ShipperContact, ShipperFax

PackageNum → PackDepartureDate, PackArrivalDate, PackDestinationCity,    PackShipCost, InsuranceValue, InsurerCompany

            InsurerCompany → InsurerAddress }

Notes: A shipper may be shipping more than one package but each package has only one shipper.

1a. Based on the FDs above, what is the primary key of the table?

1b. Is the table definition in 1NF? Why or why not? If not, convert the table to 1NF table(s).

1c. Is/are the table(s) in 2NF? Why or why not? If not, convert the table(s) to table(s) that are in 2NF. Explain why they are now in 2NF?

1d. Are the tables in 3NF? Why or why not? If not, convert the table to 3NF. Explain why they are now in 3NF?

            1e. List all of the foreign keys in question 1d. Identify them by the table name and state which table(s) and corresponding attribute(s) they relate to

2.  NIU trucking wants to keep track of all of its truck and their base cities.  Given the following relation, produce a normalized set of relations which are normalized up through 3rd normal form. 

TRUCK (TruckNum, TruckType, TypeDesc, TruckMiles, DatePurchased, TruckSerialNum, BaseCity, BaseState, BasePhone, BaseManagerName, ManagerPhone, BasePhone)

Business rules:

1.  A truck is based at a single base.

2.  A base can be the base for many trucks.

2a. List ALL the FDs for the table that hold based upon the descriptions of the constraints above.

2b. Is the table definition in 1NF?  Why or why not?  If not, convert the table to 1NF table(s).

2c. Is/are the table(s) in 2NF?  Why or why not?  If not, convert the table(s) to table(s) that are in 2NF.  Explain why they are now in 2NF? 

2d. Are the tables in 3NF?  Why or why not?  If not, convert the table to 3NF.  Explain why they are now in 3NF?

2e. List all of the foreign keys in question 2d.  Identify them by the table name and state which table(s) and corresponding attribute(s) they relate to.

3.  Ace Manufacturing constructs products for sale.  Each product is identified by a serial number.  Each product is constructed from many other parts which are purchased from a variety of vendors.  Given the following relation, produce a normalized set of relations which are normalized up through 3rd normal form.  Note: in the following relation the prefix Prod indicates Product, Comp indicates Component and Vend indicates Vendor.

Manufacture(ProdSerialNum, ProdName, ProdType, ProdTypeName, Component(CompSerialNum, CompType, CompName, Vendor(VendCode, VendName, VendAddress, CompPrice)* )*, ProdPrice)

Business Rules:

1.  Ace Manufacturing constructs many products.

2.  A product is classified as a certain type.

3.  A product is made up of components. 

4.  Each component can be supplied by many different vendors.

5.  A vendor's components may be found in many different products.

6.  Each vendor may charge a different price for the same component.

3a.  List ALL the FDs for the table that hold based upon the descriptions of the constraints above.

3b. Is the table definition in 1NF?  Why or why not?  If not, convert the table to 1NF table(s).

3c. Is/are the table(s) in 2NF?  Why or why not?  If not, convert the table(s) to table(s) that are in 2NF.  Explain why they are now in 2NF? 

3d. Are the tables in 3NF?  Why or why not?  If not, convert the table to 3NF.  Explain why they are now in 3NF?

3e. List all of the foreign keys in question 3d.  Identify them by the table name and state which table(s) and corresponding attribute(s) they relate to.

4.  Given the following table definition and constraints:

R (A, B, C, D, E, F, G, H, I, J)

 

            FD = { A,B,C,D           → E, F, G, H, I J

                        B, C, D                        → E, F

                        A                      → G, H, I, J

                        E                      → F

                        H, I                  → J }

4a.  Based on the FDs above, what is the primary key of the table?

4b.  Is the table definition in 1NF?  Why or why not?  If not, convert the table to 1NF table(s).

4c.  Is/are the table(s) in 2NF?  Why or why not?  If not, convert the table(s) to table(s) that are in 2NF.  Explain why they are now in 2NF? 

4d.  Are the tables in 3NF?  Why or why not?  If not, convert the table to 3NF.  Explain why they are now in 3NF?

4e.  List all of the foreign keys in question 4d.  Identify them by the table name and state which table(s) and corresponding attribute(s) they relate to.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9131609
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question?


Related Questions in DBMS

You can work on this assignment individually or in a group

You can work on this assignment individually or in a group of 2. If you are working in a group please establish a group in Assignment 2 Group on Canvas In this assignment you are asked to explore the use of neural networ ...

Assignment -scenario setup a mock phase 3 clinical trial

Assignment - Scenario: Setup a Mock Phase 3 Clinical Trial for evaluating the efficacy of a Blood Pressure/Weight Loss/ or Muscle Strength Enhancement supplement. Assume that the testing takes place at a physician's offi ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

This assignment is a continuation of this solution the case

This assignment is a continuation of this solution The case study company has received the first report from its enterprise content management (ECM) consultant and now has a documented list of major content requirements ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

This is a starting out with visual basic programming

This is a starting out with visual basic programming problem, meaning its a basic programming nothing advanced. Question: Add a linq statement to the combo box text-changed event to dispaly the city field of the selected ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As