Unit II-Normalization
Unit II-Normalization
n
Normalization
Non-key attribute
store_location
Functional dependencies
EMP_ID → EMP_COUNTRY
EMP_DEPT → {DEPT_TYPE, EMP_DEPT_NO}
BCNF Conversion
EMP_COUNTRY table
EMP_DEPT table
EMP_DEPT_MAPPING table
Three Tables
EMP_ID EMP_COUNTRY
264 India
264 India
Functional dependencies:
EMP_ID → EMP_COUNTRY
EMP_DEPT → {DEPT_TYPE, EMP_DEPT_NO}
Candidate keys:
74 Biology Cricket
59 Physics Hockey
STUDENT_COURSE
STUDENT_HOBBY
Decomposition
21 Computer 21 Dancing
21 Math 21 Singing
34 Chemistry 34 Dancing
74 Biology 74 Cricket
59 Physics 59 Hockey
Fifth Normal Form (5NF)
22 Denim 28 Mumbai
33 Alina 25 Delhi
46 Stephan 30 Bangalore
52 Katherine 36 Mumbai
60 Jack 40 Noida
DEPT_ID EMP_ID DEPT_NAME
827 22 Sales
438 33 Marketing
869 46 Finance
575 52 Production
678 60 Testing
Joining Operation