Assignment Instructions
Required Reading
1. Pratt – Concepts of Database Management – Chapter 5
Assignment:
Complete the Premiere Products Exercises in Chapter 5 on page 180/181 (exercises 1 & 2). The % after an instruction indicates the % of grade for this exercise.
Include the below numbers and letters to organize the submission – do not include the questions.
1) For Exercise 1
A) Copy the definition of functional dependency (from the text), then explain it in your own words including an example not in the text or this exercise. (5%)
B) Submit one complete set of functional dependencies (use the notation found on the bottom of page 162, ensure all fields are included at least once). (15%)
In your own words and using field names from this exercise, explain one row of functional dependencies (this demonstrates an understanding of how to apply the concept).
C) Submit the 3NF table(s) (use the shorthand table notation found on page 34, and 162). The tables and fields on those pages are similar to those assignment. That is because they are also based on Premier Products example. The main point in referencing those pages and tables is to provide examples of the notation format – there may be similarities in content – but base your submission on fields in the exercise. (15%)
D) For each 3NF table:
Include a statement, in your own words that explains the primary key selection: why is that field a good choice for the primary key? (10%)
2) For Exercise 2
A) Submit one complete set of functional dependencies (use the notation found on the bottom of page 162, ensure all fields are included at least once). (15%)
In your own words and using field names from this exercise, explain one row of functional dependencies (this demonstrates an understanding of how to apply the concept).
B) Submit the 3NF table(s) (use the shorthand table notation found on page 34, and 162). (15%)
C) For each 3NF table:
Include a statement, in your own words that explains the primary key selection: why is that field a good choice for the primary key? (10%)
Writing APA/Org/Clarity/Spelling (15%)
EXERCISES 1 AND 2
·
1. Using your knowledge of Premiere Products, determine the functional dependencies that exist in the following table. After determining the functional dependencies, convert this table to an equivalent collection of tables that are in third normal form.
·
Part (PartNum, Description, OnHand, Class, Warehouse, Price, (OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, LastName, FirstName, NumOrdered, QuotedPrice) )
· 2. List the functional dependencies in the following table that concerns invoicing (an application Premiere Products is considering adding to its database), subject to the specified conditions. For a given invoice (identified by the InvoiceNum), there will be a single customer. The customer’s number, name, and complete address appear on the invoice, as does the date. Also, there may be several different parts appearing on the invoice. For each part that appears, display the part number, description, price, and number shipped. Each customer that orders a particular part pays the same price. Convert this table to an equivalent collection of tables that are in third normal form.
·
Invoice (InvoiceNum, CustomerNum, LastName, FirstName, Street, City, State, Zip, Date, (PartNum, Description, Price, NumShipped) )
NOTATION ON THE BOTTOM OF 162
A table that is in first normal form still might contain problems that will require you to restructure it. Consider the following table:
Orders (OrderNum, OrderDate, PartNum, Description, NumOrdered, QuotedPrice)
This table has the following functional dependencies:
OrderNum → OrderDate
PartNum → Description
OrderNum, PartNum → NumOrdered, QuotedPrice, OrderDate, Description
NOTATION FOUND ON PAGE 34
Rep (RepNum, LastName, FirstName, Street, City, State, Zip, Commission, Rate)
Customer (CustomerNum, CustomerName, Street, City, State, Zip, Balance, CreditLimit, RepNum)
Orders (OrderNum, OrderDate, CustomerNum)
OrderLine (OrderNum, PartNum, NumOrdered, QuotedPrice)
Part (PartNum, Description, OnHand, Class, Warehouse, Price)