CHP8 NORMALISATION Flashcards

1
Q

Normalisation

A
  • Process for evaluating and correcting table structures to minimise data redundancies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Stages of normalisation

A
  1. First normal form (1NF) no repeating groups and PK is identified
  2. Second normal form (2NF) - no partial dependencies
  3. Third normal form (3NF) - no transitive dependencies = most business database goes as high as 3NF for normalisation process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Steps to reach 1NF

A
  1. Eliminate repeating groups and nuls and appropriate null value.
  2. Identify the primary key.
    - Using composite key which is the combination of two attributes (more than one primary key)
  3. Identify all dependencies
    Transitive and partial dependencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Two types of dependencies:

A
  1. 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.
  2. Transitive dependencies - transitive dependency is a dependency from one nonprime to another nonprime attribute(not connected to any key)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Steps to reach 3NF

A
  • Write its PK in the new interdeminant
  • Eliminate transitive dependencies to create more tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly