CHP8 NORMALISATION Flashcards
1
Q
Normalisation
A
- Process for evaluating and correcting table structures to minimise data redundancies
2
Q
Stages of normalisation
A
- First normal form (1NF) no repeating groups and PK is identified
- Second normal form (2NF) - no partial dependencies
- Third normal form (3NF) - no transitive dependencies = most business database goes as high as 3NF for normalisation process
3
Q
Purpose of normalisation
A
- All attributes in a table are dependent on the primary key
- To ensure data is uniquely identifiable by a primary key value
4
Q
Steps to reach 1NF
A
- Eliminate repeating groups and nuls and appropriate null value.
- Identify the primary key.
- Using composite key which is the combination of two attributes (more than one primary key) - Identify all dependencies
Transitive and partial dependencies
5
Q
Two types of dependencies:
A
- Partial dependencies - A dependency based on only a part of a composite primary key is a partial dependency
- EG PROJ_NAME depends on PROJ_NUM and EMP_NAME depends on EMP_NUM. - Transitive dependencies - transitive dependency is a dependency from one nonprime to another nonprime attribute(not connected to any key)
6
Q
Steps to reach 2NF
A
- Write each key component, then write the composite key on the last line.
- Assign corresponding depending attributes such as
PROJ_NUM -> PROJ_NAME
EMP_NUM->EMP_NAME,JOB_CLASS
PROJ_NUM,EMP_NUM->ASGN_HRS - 3 total tables
7
Q
Steps to reach 3NF
A
- Write its PK in the new interdeminant
- Eliminate transitive dependencies to create more tables