Problem
I. Using the INVOICE table given below, draw its dependency diagram and identify all dependencies (including transitive and partial dependencies). You can assume that the table does not contain any repeating groups and that an invoice number references more than one product. Hint: This table uses a composite primary key.
Attribute name
|
Sample value
|
Sample value
|
Sample value
|
Sample value
|
Sample value
|
INV_NUM
|
211347
|
211347
|
211347
|
211348
|
211349
|
PROD_NU M
|
AA-E3522 QW
|
QD-30093 2X
|
RU-99574 8G
|
AA-E3522 QW
|
GH-77834 5P
|
SALE_DAT E
|
15-Jan-201 8
|
15-Jan-201 8
|
15-Jan-201 8
|
15-Jan-201 8
|
15-Jan-201 8
|
PROD_LA BEL
|
Rotary sander
|
0.25-in. Drill bit
|
Band saw
|
Rotary sander
|
Power drill
|
VEND_CO DE
|
211
|
211
|
309
|
211
|
157
|
VEND_NA ME
|
NeverFail, Inc.
|
NeverFail, Inc.
|
BeGood, Inc.
|
NeverFail, Inc.
|
ToughGo, Inc.
|
QUANT_S OLD
|
1
|
8
|
1
|
2
|
1
|
PROD_PRI CE
|
$34.46
|
$2.73
|
$31.59
|
$34.46
|
$69.32
|
II. Using the answer to the above question, remove all partial dependencies and draw the new dependency diagrams. Identify the normal forms for each table structure you created.
III. Using the answer to the above question, remove all transitive dependencies and draw the new dependency diagrams. Identify the normal forms for each table structure you created.