Académique Documents
Professionnel Documents
Culture Documents
Database
Normalization
Housekeeping
Assignment 1 marked
Closed book
11/11/14
+
Fundamentals of Database
Management Systems
by
Mark L. Gillenson, Ph.D.
University of Memphis
Chapter
7
Logical
Database
Design
7-4
Chapter Objectives
7-5
7-6
7-7
7-8
7-9
7-10
Functional
Dependence
Salesperson Number
Salesperson
Salesperson Name
The
Salesperson
Name is functionally
dependent on Salesperson Number.
7-11
are the
functional
dependencies?
+
General
Hardware Environment:
SALESPERSON and PRODUCT
7-12
7-14
7-15
7-16
Sales-person
Name
Commission
Percentage
Baker
10
Adams
Dickens
Carlyle
Year Depart-ment
of
Number
Manager Product
Hire
Name
Name
1995
73 Scott
Hammer
Saw
Pliers
15 2001
59 Lopez
Wrench
Hammer
Drill
Saw
10 1998
73 Scott
Drill
Pliers
20 2001
73 Scott
Wrench
Drill
Pliers
Unit
Price Quantity
17.50
473
26.25
170
11.50
688
12.95
1745
17.50
2529
32.99
1962
26.25
3071
32.99
809
11.50
734
12.95
3729
32.99
3110
11.50
2738
SALESPERSON/PRODUCT Table
7-18
Sales-person
Name
Commission
Percentage
Baker
10
Baker
10
Baker
10
Adams
15
Adams
15
Adams
15
Adams
15
Dickens
10
Dickens
10
Carlyle
20
Carlyle
20
Carlyle
20
SALESPERSON/PRODUCT Table
Year Depart-ment
of
Number
Manager Product
Hire
Name
Name
1995
73 Scott
Hammer
1995
73 Scott
Saw
1995
73 Scott
Pliers
2001
59 Lopez
Wrench
2001
59 Lopez
Hammer
2001
59 Lopez
Drill
2001
59 Lopez
Saw
1998
73 Scott
Drill
1998
73 Scott
Pliers
2001
73 Scott
Wrench
2001
73 Scott
Drill
2001
73 Scott
Pliers
Unit
Price Quantity
17.50
473
26.25
170
11.50
688
12.95
1745
17.50
2529
32.99
1962
26.25
3071
32.99
809
11.50
734
12.95
3729
32.99
3110
11.50
2738
7-19
First
7-20
Manager
Name
Scott
Lopez
Scott
Scott
7-22
7-23
7-24
7-25
7-26
All
It
Recap + clarification
0NF:
1NF:
Definitions
11/11/14
2NF (revisited)
3NF revisited
Old:
Does not allow transitive dependencies in which one nonkey attribute is functionally dependent on another.
New:
11/11/14
7-32
The
Only
Example
of
3NF
table
not
in
+
Today's Court
Court
StartTime EndTime
BCNF
Bookings
RateType
09:30
10:30
SAVER
11:00
12:00
SAVER
14:00
15:30
STANDARD
10:00
11:30
PREMIUM-B
11:30
13:30
PREMIUM-B
Each row in the table represents a court booking at a tennis club that has one
16:30
hard court (Court 1)2and one grass15:00
court (Court 2).
A booking is PREMIUM-A
defined by its
Court and the period for which the Court is reserved Additionally, each
booking has a Rate Type associated with it. There are four distinct rate types:
http://en.wikipedia.org/wiki/Boyce%E2%80%93Codd_normal_form
11/11/14
11/11/14
http://en.wikipedia.org/wiki/Fourth_normal_form
11/11/14
A1 Pizza
Thick Crust
Springfield
A1 Pizza
Thick Crust
Shelbyville
A1 Pizza
Thick Crust
Capital City
A1 Pizza
A1 Pizza
A1 Pizza
Elite Pizza
Thin Crust
Elite Pizza
Capital City
Vincenzo's Pizza
Thick Crust
Springfield
Vincenzo's Pizza
Thick Crust
Shelbyville
Vincenzo's Pizza
Thin Crust
Springfield
Vincenzo's Pizza
Thin Crust
Shelbyville
11/11/14
http://en.wikipedia.org/wiki/Fifth_normal_form
11/11/14
Jack Schneider
Jack Schneider
Acme Breadbox
Willy Loman
Robusto
Pruning Shears
Willy Loman
Robusto
Vacuum Cleaner
Willy Loman
Robusto
Breadbox
Willy Loman
Robusto
Umbrella Stand
Louis Ferguson
Robusto
Vacuum Cleaner
Louis Ferguson
Robusto
Telescope
Louis Ferguson
Louis Ferguson
Louis Ferguson
Nimbus
Tie Rack
11/11/14
7-39
http://www.informationqualitysolutions.com/FreeStuff/re
ttigNormalizationPoster.pdf
11/11/14
7-41
7-42
7-43
7-44
Lucky Rent-A-Car:
Functional Dependencies