Title: 2/170 ( Premiere Products )
12/170 ( Premiere Products )
22/170 ( Premiere Products )
Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
3Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
4Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
5Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
6Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
7Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
8Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
9Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
(PartNum, Description,
Price,
NumShipped ) )
Lets normalize (1NF).
10Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
11Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
12Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
13Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
14Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
15Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
16Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
17Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
18Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
19Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
20Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
Lets eliminate partial dependencies (2NF)
21Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
22Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
23Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date,
PartNum,
Description,
Price,
NumShipped )
24Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
25Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
26Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
27Now lets make sure the only determinants are
candidate keys (3NF).
Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
28Now lets make sure the only determinants are
candidate keys (3NF).
Invoice (InvoiceNum, CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip,
Date) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
29Invoice (InvoiceNum, Date,
CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine(
InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
30Invoice (InvoiceNum, Date, CustomerNum)
Customer ( CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine( InvoiceNum,
PartNum,
Description,
Price,
NumShipped )
31Invoice (InvoiceNum, Date, CustomerNum)
Customer ( CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine
(InvoiceNum, PartNum,
Description,
Price,
NumShipped
)
32Invoice (InvoiceNum, Date, CustomerNum)
Customer (CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine (InvoiceNum,
PartNum,
Description,
Price,
NumShipped )
33Invoice (InvoiceNum, Date, CustomerNum)
Customer (CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine (InvoiceNum,
PartNum,
Description,
Price,
NumShipped )
34Invoice (InvoiceNum, Date, CustomerNum)
Customer (CustomerNum, LastName,
FirstName,
Street,
City,
State,
Zip) InvoiceLine (InvoiceNum,
PartNum,
Description,
Price,
NumShipped )
End of story.
353/170 ( Premiere Products )
363/170 ( Premiere Products )
Part (PartNum, Description, Class, Price,
(WarehouseNum, WarehouseName,
OnHand), (SupplierNum,
SupplierName, LeadTime) )
37Part (PartNum, Description, Class, Price,
(WarehouseNum, WarehouseName,
OnHand), (SupplierNum,
SupplierName, LeadTime) )
38Part (PartNum, Description, Class, Price,
(WarehouseNum, WarehouseName,
OnHand),
(SupplierNum, SupplierName, LeadTime) )
39Part (PartNum, Description, Class, Price,
(WarehouseNum, WarehouseName,
OnHand) ) Part (PartNum, Description, Class,
Price, (SupplierNum,
SupplierName, LeadTime) )
40Part_Wh (PartNum, Description, Class, Price,
(WarehouseNum,
WarehouseName, OnHand) ) Part_Sp (PartNum,
Description, Class, Price,
(SupplierNum, SupplierName, LeadTime) )
41Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
Description, Class, Price,
SupplierNum, SupplierName, LeadTime )
42Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
Description, Class, Price,
SupplierNum, SupplierName, LeadTime )
43Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
Description, Class, Price,
SupplierNum, SupplierName, LeadTime )
44Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
Description, Class, Price,
SupplierNum,
LeadTime ) Supplier (SupplierNum, SupplierName)
45Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
SupplierNum,
LeadTime ) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
46Part_Wh (PartNum, Description, Class, Price,
WarehouseNum,
WarehouseName, OnHand ) Part_Sp (PartNum,
SupplierNum,
LeadTime ) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
47Part_Wh (PartNum,
WarehouseNum, WarehouseName, OnHand ) Part_Sp
(PartNum,
SupplierNum,
LeadTime ) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
48Part_Wh (PartNum,
WarehouseNum, WarehouseName, OnHand ) Part_Sp
(PartNum,
SupplierNum,
LeadTime ) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
49Part_Wh (PartNum,
WarehouseNum, WarehouseName, OnHand ) Part_Sp
(PartNum, SupplierNum,
LeadTime) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
50Part_Wh (PartNum, WarehouseNum, WarehouseName,
OnHand ) Part_Sp (PartNum, SupplierNum,
LeadTime) Supplier
(SupplierNum, SupplierName) Part (PartNum,
Description, Class, Price)
51Part_Wh (PartNum, WarehouseNum, WarehouseName,
OnHand ) Part_Sp (PartNum, SupplierNum,
LeadTime) Supplier
(SupplierNum, SupplierName) Part (PartNum,
Description, Class, Price)
52Part_Wh (PartNum, WarehouseNum, WarehouseName,
OnHand ) Part_Sp (PartNum, SupplierNum,
LeadTime) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
53Part_Wh (PartNum, WarehouseNum, WarehouseName,
OnHand ) Part_Sp (PartNum, SupplierNum,
LeadTime) Supplier (SupplierNum,
SupplierName) Part (PartNum, Description, Class,
Price)
542-3/171 ( Henry Books Case )
552-3/171 ( Henry Books Case )
Course ( CourseNum, Description, NumCredits,
(Textbook), (InstructorNum, InstructorName)
)
56Course ( CourseNum, Description, NumCredits,
(Textbook), (InstructorNum,
InstructorName) )
57Course ( CourseNum, Description, NumCredits,
(Textbook)) Course ( CourseNum, Description,
NumCredits, (InstructorNum, InstructorName) )
58Crs-Txt ( CourseNum, Description, NumCredits,
(Textbook)) Crs-Ins ( CourseNum, Description,
NumCredits, (InstructorNum, InstructorName) )
59Crs-Txt ( CourseNum, Description, NumCredits,
(Textbook)) Crs-Ins ( CourseNum, Description,
NumCredits, (InstructorNum, InstructorName) )
60Crs-Txt ( CourseNum, Description, NumCredits,
Textbook) Crs-Ins ( CourseNum, Description,
NumCredits, InstructorNum, InstructorName )
61Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, Description, NumCredits, Instructor
Num, InstructorName ) Course(CourseNum,
Description, NumCredits)
62Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum, InstructorName
) Course(CourseNum, Description, NumCredits)
63Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
64Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
65Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
66Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
67Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
68Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
69Crs-Txt ( CourseNum, Textbook) Crs-Ins
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
70CourseText ( CourseNum, Textbook) CourseInstructor
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName )
71CourseText ( CourseNum, Textbook) CourseInstructor
( CourseNum, InstructorNum ) Course(CourseNum,
Description, NumCredits) Instructors (
InstructorNum, InstructorName ) End of
story.