Академический Документы
Профессиональный Документы
Культура Документы
Create separate tables for each group of related data and identify
each row with a unique column or set of columns (the primary key).
a.
b.
Name
State
Country
Phone1
John
101
488-511-3258 781-896-9897425-983-9812
Bob
102
861-856-6987
Rob
201
587-963-8425425-698-9684
PK
?
Phone2
[ Phone Nos ]
?
ID
Name
State
Country
Phone
John
101
488-511-3258
John
101
781-896-9897
John
101
425-983-9812
Phone3
Bob
102
861-856-6987
Rob
201
587-963-8425
Rob
201
425-698-9684
2.
Second Normal Form (2NF)Second normal form (2NF) further addresses the concept of
Remove subsets of data that apply to multiple rows of a table and place them in separate
tables.
Create relationships between these new tables and their predecessors through
the use of foreign keys.
Remove columns which create duplicate data in a table and related a new table
with Primary Key Foreign Key relationship
ID
Name
State
Country
Phone
John
101
488-511-3258
John
101
781-896-9897
John
101
425-983-9812
Bob
102
861-856-6987
Rob
201
587-963-8425
Rob
201
425-698-9684
ID
Name
State
Country
John
2
3
3.
PhoneID
ID
Phone
101
488-511-3258
Bob
102
781-896-9897
Rob
201
425-983-9812
587-963-8425
587-963-8425
425-698-9684
Remove columns that are not dependent upon the primary key.
ID
1
2
3
Name
John
Bob
Rob
State
101
102
201
Country
1
1
2
TeacherID
101
101
201
201
StudentID SubjectID
1001
1002
1002
1001
1
2
3
2
1001
1002
1001
1002
1
2
3
2
StudentNam
e
John
Rob
Bob
Rob
StudentNam
e
X
X
X
X