A - Quick Look at Normalization
A - Quick Look at Normalization
EMPLOYEE
Emp_ID Last_Name First_Name M_I
S
2
tu
2 2
d e n t_
-2 2 -2 0
ID
2 0
B u ild in g
D a b n e y Building Fee
2
2
3 2
2 2
-2 2 -2 1
-2 2 -5 5
1 1
5 4
L ile s
T h e R a n g e
Dabney 1200
2 5 5 -2 4 -2 3 3 2 D a b n e y Liles 1000
3 3 0 -2 5 -7 7 8 9 T h e R a n g e
The Range 1100
Boyce-Codd Normal Form (BCNF)
3NF and every determinant is a candidate key.
Boyce-Codd Normal Form (BCNF)
STUDENT_ADVISOR
Primary Key: Student_ID, Major
Student_ID Advisor Major
Candidate Key: Student_ID, Advisor
Advisor Major
A relation
where a
determinant is Student_ID Major Advisor
not a 222-22-2020 MIS Leigh
candidate key 232-22-2111 Management Gowan
222-22-2020 MIS Roberts
222-22-2111 Marketing Reynolds
255-24-2332 Marketing Reynolds
Note: Students can have a double major and have an advisor
for each major. An advisor works only with students in their
assigned area.
Boyce-Codd Normal Form (BCNF)
STUDENT_ADVISOR
Divide the Key: Student_ID, Advisor
Student_ID Advisor
relation into two
relations that
ADVISOR_MAJOR Key: Advisor
meet BCNF
Advisor Major Advisor Major