Reference no: EM132356138
Normalization Assignment -
Normalization Exercise 1: For each of the following tables
- Convert to a group of tables in first normal form.
- Show the primary key of each table.
- Show the foreign key of each table (and what table it points to).
Normalization Exercise 2: Consider the following table- With some sample data shown(assume each order can contain various numbers of different products, but is placed by one customer on one date), and
- determine the functional dependencies
- determine the primary key
- determine if there are any partial dependencies
- convert to 2nd N.F. Show all keys (primary and foreign)
Normalization Exercise 3: Consider the following table involving course info and the grades given in those courses, and
- determine the functional dependencies
- determine the primary key
- determine if there are any partial dependencies
- convert to 2nd N.F. Show all keys (primary and foreign)
Normalization Exercise 4: Given the follow table T(A,B,C,D,E,F,G)
Suppose we have the following dependencies: A+B---> C; A+B--->F; A--> D; A--->E; B--> G
a) What is the primary key? (the minimum attributes that determine all the other attributes)
b) What are the partial dependencies?
c) Convert to set of tables in 2nd N.F. Indicate primary and foreign keys.
Normalization Exercise 5: Consider the following table (with each order going to a single customer and shipped from one warehouse)
Order(ordNum,date, warehouseNum, warehouseLoc, custNum, custName)
Or55 1/1/07 w5 NY C55 Acme
Or66 1/1/07 w3 WC C66 IBM
Or77 4/4/07 w5 NY C77 Intel
Or88 4/12/07 w3 WC C55 Acme
a) What are the functional dependencies of the order table?
b) What is the primary key?
c) Why must it be in 2nd Normal Form?
d) Is it in 3rd Normal Form? Explain (any dependencies not involving candidate keys?)
e) Convert to 3rd N.Form. Indicate primary and foreign keys.
Normalization Exercise 6: Consider the following table with the given dependencies.
T(A,B,C,D,E,F,G) E->G; B->C,A; D->A,B,C,E,F,G
a) What is the primary key?
b) Why must it be in 2NF? (Why can't there be any partial dependencies)
c) Is it in 3NF (any dependencies involving attributes that are not candidate keys)?
d) Convert to a set of tables in 3NF. Indicate primary and foreign keys.
Normalization Exercise 7: Consider the following table and dependencies
T(A,B,C,D,E,F,G,H) D+E---> A,B,C; D-->F;E-->G,H;H-->G
a) What is the key?
b) Are there any partial dependencies? List them!
c) Is T is 2nd Normal form?
d) Convert to a group of tables in 2nd N.F
e) Are the tables in part C in 3rd N.Form? Explain.
f) Convert to 3rd N. Form.
Normalization Exercise 8: Consider the table involving a chain of bookstores, books and publishers
- each branch can sell a book at what ever Selling-price they want
- each book has a (preset, fixed) list price
- each book is published by a single publisher
(BranchNum, BranchAddr, BkNum, Tittle, PubNum, PubName, List-Price, InStock, list-Price, Selling-Price)
a) What are the functional dependencies?
b) If we keep everything in this one table what is the primary key?
c) Is the table in 2nd N.F.?
d) List any dependencies which involve part of the primary key (partial dependencies)?
e) Convert to a set of tables in 2nd N.F. (show the primary key of each table)
f) Is the table in 3rd N.F?
g) List any dependencies that don't involve the candidate keys.
h) Convert to a set of tables in 3rd N.F. Show all primary and foreign keys.
Attachment:- Normalization Assignment File.rar