Professional Documents
Culture Documents
Database Design: Logical Models: Normalization and The Relational Model
Database Design: Logical Models: Normalization and The Relational Model
Database Design: Logical Models: Normalization and The Relational Model
• Review
– Conceptual Model and UML
• Logical Model for the Diveshop
database
• Normalization
• Relational Advantages and
Disadvantages
• Review
• Logical Design for the Diveshop
database
• Normalization
• Relational Advantages and
Disadvantages
Destination 1
no Order
Destination
Site No n
No
Order
Sites n
No
1 1
Site No
n 1/n
DiveItem
Item
BioSite ShipWrck n
No
Species n
No
Site No
1
1
• Review
– Conceptual Model and UML
• Logical Model for the Diveshop
database
• Normalization
• Relational Advantages and
Disadvantages
Destination 1
no Order
Destination
Site No n
No
Order
Sites n
No
1 1
Site No
n 1/n
DiveItem
Item
BioSite ShipWrck n
No
Species n
No
Site No
1
1
Customer No
Name Street City State/Prov Zip/Postal Code
Country Phone First Contact
1480 Louis Jazdzewski
2501 O'Connor
New Orleans LA 60332 U.S.A. (902) 555-88881/29/95
1481 Barbara W right
6344 W . Freeway
San Francisco
CA 95031 U.S.A. (415) 555-4321 2/2/93
1909 Stephen Bredenburg
559 N.E. 167
Indianapolis
Place IN 46241 U.S.A. (317) 555-3644 1/5/93
1913 Phillip Davoust
123 First Street
Berkeley CA 94704 U.S.A. (415) 555-9184 3/9/98
1969 David Burgett
320 Montgomery
SeattleStreet
WA 98105 U.S.A. (206) 555-75803/12/99
2001 Mary Rioux1701 Gateway Pueblo
Blvd. #385
CO 81002 U.S.A. (719) 555-20103/15/97
2306 Kim Lopez 14134 Nottingham
HonoluluLaneHI 96826 U.S.A. (808) 555-50501/29/99
2589 Hiram Marley7233 Mill Run
SanDrive
Francisco
CA 94123 U.S.A. (415) 555-64302/18/99
3154 Tanya Kulesa505 S. Flower,
NewMail
YorkStop
NY 48943 10032 U.S.A. (212) 555-67501/30/99
3333 Charles Sekaron
110 East Park
Miller
Avenue,SDBox 8 57362 U.S.A. (613) 555-43333/16/98
3684 Lowell Lutz915 E. Fesler
Dallas TX 75043 U.S.A. (214) 555-27222/15/99
4158 Keith Lucas56 South Euclid
Chicago IL 60542 U.S.A. (312) 555-43103/17/98
4175 Karen Ng 2134 Elmhill Klamath
Pike FallsOR 97603 U.S.A. (503) 555-47003/20/99
5510 Ken Soule 58 Sansome Aurora
Street CO 89022 U.S.A. (303) 555-6695 2/5/99
Order No Customer No
Sale Date Ship Via PaymentMethod
CcNumber CcExpDateNo Of People
Depart DateReturn DateDestinationVacationCost
307 1480 9/1/99 UPS Visa 12345 678 90 1/1/01 2 11/8/00 11/15/00 Fiji 10000
310 1481 9/1/99 FedEx Check 1 4/4/00 4/18/00 Santa Barbara 6000
313 1909 9/1/99 W alk In Visa 456456456 9/11/00 4 6/27/00 7/11/00 Cozumel 8000
314 1913 9/1/99 FedEx Check 3 2/7/00 2/14/00 Monterey 6000
317 1969 9/1/99 FedEx AmEx 432432432 12/31/02 4 5/9/00 5/16/00 Fiji 20000
320 2001 9/1/99 W alk In Cash 1 10/10/00 10/17/00 Santa Barbara 3000
321 2306 9/1/99 Emery Master Card
1112223334 8/12/00 1 3/15/00 4/12/00 New Jersey 8000
325 2589 9/1/99 Emery AmEx 332332332 12/10/99 1 3/15/00 4/12/00 New Jersey 8000
326 3333 9/1/99 FedEx Money Order 2 2/10/00 2/17/00 Monterey 4000
327 3684 9/1/99 DHL Master Card
122122321 11/9/99 4 3/10/00 3/23/00 Florida 24000
329 4158 9/1/99 W alk In Cash 1 5/4/00 5/15/00 Cozumel 1571
330 4175 9/1/99 FedEx Check 2 7/3/00 7/10/00 Florida 6000
331 5510 9/1/99 FedEx Money Order 6 6/20/00 6/30/00 Santa Barbara 36000
333 5926 9/1/99 DHL Discover 123123123 12/21/00 2 6/10/00 6/17/00 Fiji 10000
336 5719 9/1/99 FedEx Cash 10 4/2/00 4/24/00 Great Barrier Reef
200000
S p e cie s No S ite No
90010 2001
90010 2002
90010 2003
90010 2004
90010 2005
90010 6001
90010 6003
90010 6004
90010 6005
90020 2001
90020 2002
• Review
• Logical Model for the Diveshop
database
• Normalization
• Relational Advantages and
Disadvantages
Functional
dependency
No transitive
of nonkey
dependency
attributes on
between
the primary
nonkey Boyce- key - Atomic
attributes
Codd and values only
All
Higher Full
determinants Functional
are candidate dependency
keys - Single of nonkey
multivalued attributes on
dependency the primary
key
Gallstone
s removal;
Jan 1, 15 New St. Beth Little Kidney
145 1995; June New York, Michael stones Penicillin, rash
1111 311 12, 1995 John White NY Diamond removal none- none
Eye
Charles Cataract
Apr 5, Field removal
243 1994 May 10 Main St. Patricia Thrombos Tetracyclin Fever
1234 467 10, 1995 Mary Jones Rye, NY Gold is removal e none none
Dogwood
Lane Open
Jan 8, Harrison, David Heart Cephalosp
2345 189 1996 Charles Brown NY Rosen Surgery orin none
55 Boston
Post Road,
Nov 5, Chester, Cholecyst
4876 145 1995 Hal Kane CN Beth Little ectomy Demicillin none
Blind Brook Gallstone
May 10, Mamaronec s
5123 145 1995 Paul Kosher k, NY Beth Little Removal none none
Eye
Cornea
Replacem
Apr 5, Hilton Road ent Eye
1994 Dec Larchmont, Charles cataract Tetracyclin
6845 243 15, 1984 Ann Hood NY Field removal e Fever
15 New St.
New York, Gallstone
1111 145 01-Jan-95 John W hite NY Beth Little s removal Penicillin rash
15 New St. Kidney
New York, Michael stones
1111 311 12-Jun-95 John W hite NY Diamond removal none none
Eye
10 Main St. Cataract Tetracyclin
1234 243 05-Apr-94 Mary Jones Rye, NY Charles Field removal e Fever
55 Boston
Post Road,
Chester, Cholecyst
4876 145 05-Nov-95 Hal Kane CN Beth Little ectomy Demicillin none
Order Order
Order No Order No
Date Taken Date Taken
Date Dispatched Date Dispatched
Date Invoiced Date Invoiced
Cust ID Cust ID
Cust Name
IS 257 – Fall 2006 2006.09.14 - SLIDE 49
Upward Denormalization
Order Order
Order No Order No
Date Taken Date Taken
Date Dispatched Date Dispatched
Date Invoiced Date Invoiced
Cust ID Cust ID
Cust Name Cust Name
Order Price
Order Item
Order No Order Item
Item No Order No
Item Price Item No
Num Ordered Item Price
Num Ordered
• Review
• Logical Model for the Diveshop
database
• Normalization
• Relational Advantages and
Disadvantages