1 / 3

NORMALIZATION

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

Télécharger la présentation

NORMALIZATION

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NORMALIZATION

  2. 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

  3. 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)

More Related