Beruflich Dokumente
Kultur Dokumente
Normalization
! E.F. Codd
! A series of tests
Normalization
! Update anomalies
! insertion anomalies
! deletion anomalies
! modification anomalies
Example
StaffBranch
BranchAddres
StaffNo StaffName Position Salary BranchNo
s
27 Deer Rd.
GH121 Joel Reyes Manager 27000 B005
New York
22
Rico
GH321 Supervisor 16000 B002 Alexandria,
Bernardo
California
001
GH234 Julie Lee Assistant 10000 B003 Alexandria,
Texas
27 Deer Rd.
GH543 Cynthia Ong Assistant 9500 B005
New York
28 Riverside,
GH243 Joey Cuy Manager 25000 B001
New York
27 Deer Rd.
GH987 Grace de Jesus Assistant 9700 B005
New York
Insertion Anomalies
27 Deer Rd.
GH121 Joel Reyes Manager 27000 B005 New York
22 Alexandria,
GH321 Rico Bernardo Supervisor 16000 B002
California
001 Alexandria,
GH234 Julie Lee Assistant 10000 B003
Texas
27 Deer Rd.
GH543 Cynthia Ong Assistant 9500 B005 New York
28 Riverside,
GH243 Joey Cuy Manager 25000 B001 New York
27 Deer Rd.
GH987 Grace de Jesus Assistant 9700 B005 New York
Deletion anomalies
Unnormalized Table
customer customer property property rent rent owner owner
rent
no name no add start finish no name
6 Lawrence St.,
CUS23 Jason Uy PR1 Glasgow 01/10/03 06/15/05 600 OW78 Jerick Coo
5 Novar Dr.,
PR3 05/01/00 05/01/10 500 OW15 Wilma Diaz
Glasgow
Bernadete 2 Manor Rd.,
CUS98 Yoson PR2 Glasgow 06/08/01 06/08/02 1500 OW78 Jerick Coo
6 Lawrence St.,
PR1 06/09/89 08/09/08 600 OW15 Wilma Diaz
Glasgow
5 Novar Dr.,
PR3 Glasgow 04/07/08 06/07/09 500 OW78 Jerick Coo
1st Normal Form
6 Lawrence St.,
CUS23 Jason Uy PR1 Glasgow 01/10/03 06/15/05 600 OW78 Jerick Coo
5 Novar Dr.,
CUS23 Jason Uy PR3 05/01/00 05/01/10 500 OW15 Wilma Diaz
Glasgow
2 Manor Rd.,
CUS98 Bernadete Yoson PR2 06/08/01 06/08/02 1500 OW78 Jerick Coo
Glasgow
CUS98 Bernadete Yoson PR1 6 Lawrence St., 06/09/89 08/09/08 600 OW15 Wilma Diaz
Glasgow
5 Novar Dr.,
CUS98 Bernadete Yoson PR3 Glasgow 04/07/08 06/07/09 500 OW78 Jerick Coo
1st Normal Form
2nd Approach
customer customer propertyn property rent rent owner owner
no name o add start finish rent no name
6 Lawrence St.,
CUS23 Jason Uy PR1 Glasgow 01/10/03 06/15/05 600 OW78 Jerick Coo
5 Novar Dr.,
CUS23 Jason Uy PR3 05/01/00 05/01/10 500 OW15 Wilma Diaz
Glasgow
2 Manor Rd.,
CUS98 Bernadete Yoson PR2 06/08/01 06/08/02 1500 OW78 Jerick Coo
Glasgow
CUS98 Bernadete Yoson PR1 6 Lawrence St., 06/09/89 08/09/08 600 OW15 Wilma Diaz
Glasgow
5 Novar Dr.,
CUS98 Bernadete Yoson PR3 Glasgow 04/07/08 06/07/09 500 OW78 Jerick Coo
Dependency Diagram
PROPERTY_RENT_OWNER CUSTOMER
custom proper property rent rent ren owne owner customer no customer
er no tyno add start finish t r name name
no CUS23 Jason Uy
6 Lawrence
CUS23 PR1
St., Glasgow
01/10/03 06/15/05 600 OW78 Jerick Coo
CUS98 Bernadete Yoson
5 Novar Dr.,
CUS23 PR3
Glasgow
05/01/00 05/01/10 500 OW15 Wilma Diaz
2 Manor Rd.,
CUS98 PR2 Glasgow 06/08/01 06/08/02 1500 OW78 Jerick Coo
6 Lawrence
CUS98 PR1 St., Glasgow 06/09/89 08/09/08 600 OW15 Wilma Diaz
5 Novar Dr.,
CUS98 PR3
Glasgow
04/07/08 06/07/09 500 OW78 Jerick Coo
1st Normal Form
PROPERTY_OWNER
property property owner owner
no add rent no name
PR1 6 Lawrence St., Glasgow 600 OW78 Jerick Coo
! it is in 1NF
OWNER
CUS98 PR3 04/07/08 06/07/09
owner owner
PROPERTY no name
property owner
propertyno rent OW78 Jerick Coo
add no
OW15 Wilma Diaz
PR1 6 Lawrence St., Glasgow 600 OW78
! It is in 2NF
Information
acc01 B00123 Harry Cenage 2nd Cruz, Harry SLIS 1985
Technology
• 3. Create a ER Model.