30 likes | 151 Views
NORMALIZATION. QUESTION: Do a normalization based on the figure 5.1, starting with unnormalized form until the third normal form as follows: UNF – Contain repeating group. 1NF - Remove repeating group 2NF – Remove partial dependencies 3NF - Remove transitive dependencies. ANSWER: UNF
E N D
QUESTION: Do a normalization based on the figure 5.1, starting with unnormalized form until the third normal form as follows: UNF – Contain repeating group. 1NF - Remove repeating group 2NF – Remove partial dependencies 3NF - Remove transitive dependencies
ANSWER: UNF PROJECTEMP (PROJ_NUM, PROJ_NAME, (EMP_NUM, EMP_NAME, JOBCLASS, CHG_HOUR, HOURS)) 1NF - Remove repeating group PROJECT (PROJ_NUM, PROJ_NAME) PROJECTEMP (PROJ_NUM, EMP_NUM, EMP_NAME, JOBCLASS, CHG_HOUR, HOURS) 2NF – Remove partial dependencies ASSIGNPROJ (PROJ_NUM, EMP_NUM,HOURS) – partial dependencies – hours is nonkey attribute depend on 2 key attributes pro_num and emp_num. PROJECT (PROJ_NUM, PROJ_NAME) – the normalized relation from 1NF PROJECTEMP (EMP_NUM, EMP_NAME, JOB_CLASS, CHGHOURS) – transitive dependency – chghours is nonkey attribute but depend on job_class which is also nonkey attribute. 3NF - Remove transitive dependencies EMPLOYEE(EMP_NUM, EMP_NAME, JOB_CLASS) JOB(JOB_CLASS, CHGHOURS) ASSIGNPROJ (PROJ_NUM, EMP_NUM,HOURS) PROJECT (PROJ_NUM, PROJ_NAME)