normalization courtesy of dr. john mote. normalization “rules” 1field uniqueness 2primary keys...
TRANSCRIPT
![Page 1: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/1.jpg)
Normalization
Courtesy of Dr. John Mote
![Page 2: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/2.jpg)
Normalization “Rules”
1 Field Uniqueness
2 Primary Keys
3 Functional Dependence
4 Field Independence
![Page 3: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/3.jpg)
Normalization “Rules”
Field Uniqueness Each field in a table should represent a unique
type of information
Eliminate compound fields Eliminate repeating fields
![Page 4: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/4.jpg)
Compound Fields
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
Address
708 Pine, San Antonio, Texas, 782015127 Maple, Austin, Texas, 787121300 Teak, San Antonio, Texas, 78201
![Page 5: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/5.jpg)
Compound Fields
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
Children
Mary, James, KennethThomas, Leslie
![Page 6: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/6.jpg)
Repeating Fields
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
Child-1
MaryThomas---------
Child-2
JamesLeslie---------
Child-3
Kenneth------------------
Child-4
---------------------------
![Page 7: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/7.jpg)
Normalization “Rules”
Field Uniqueness Primary Keys
Each table must have a primary key
“Natural” keys System-generated keys
![Page 8: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/8.jpg)
Normalization “Rules”
Field Uniqueness Primary Keys Functional Dependence
For each unique primary key value, the values in the data columns must be relevant to, and must completely describe, the subject of the table
![Page 9: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/9.jpg)
Normalization “Rules”
Field Uniqueness Primary Keys Functional Dependence
For each unique primary key value, the values in the data columns must be relevant to, and must completely describe, the subject of the table
What?
![Page 10: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/10.jpg)
Composite Primary Key
Functional Dependence
SSN Name Pay Date Earnings
123-45-6789 Bob White Nov 1998 $4,800
![Page 11: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/11.jpg)
Functional Dependence
SSN Name Pay Date Earnings
123-45-6789987-65-4321123-45-6789111-22-3333123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdBob WhiteC. GullBob WhiteJaye ByrdC. Gull
Nov 1998Dec 1998Dec 1998Dec 1998Jan 1999Nov 1998Jan 1999
$4,800$2,750$5,125$4,000$5,125$3,300$4,000
![Page 12: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/12.jpg)
Functional Dependence
SSN Pay Date Earnings
123-45-6789987-65-4321123-45-6789111-22-3333123-45-6789987-65-4321111-22-3333
Nov 1998Dec 1998Dec 1998Dec 1998Jan 1999Nov 1998Jan 1999
$4,800$2,750$5,125$4,000$5,125$3,300$4,000
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
![Page 13: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/13.jpg)
Normalization “Rules”
Field Uniqueness Primary Keys Functional Dependence
For each unique primary key value, the values in the data columns must be relevant to, and must completely describe, the subject of the table
![Page 14: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/14.jpg)
Normalization “Rules”
Field Uniqueness Primary Keys Functional Dependence Field Independence
You must be able to make a change to the data in any field (other than the primary key) without affecting any other field
![Page 15: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/15.jpg)
Field Independence
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
City State
San AntonioAustinSan Antonio
TexasTexasTexas
Zip
782017871278201
![Page 16: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/16.jpg)
Field Independence
SSN Name
123-45-6789987-65-4321111-22-3333
Bob WhiteJaye ByrdC. Gull
Zip
782017871278201
City State
San AntonioAustin
TexasTexas
Zip
7820178712
![Page 17: Normalization Courtesy of Dr. John Mote. Normalization “Rules” 1Field Uniqueness 2Primary Keys 3Functional Dependence 4Field Independence](https://reader036.vdocuments.us/reader036/viewer/2022082816/56649d955503460f94a7da56/html5/thumbnails/17.jpg)
Normalization “Rules”
1 Field Uniqueness
2 Primary Keys
3 Functional Dependence
4 Field Independence