L11 - Normalisation Flashcards
1
Q
What is normalisation?
A
- Technique for producing a set of tables with minimal redundancy
- Which supports the data requirements of an org
- Important to reduce duplication
- Less file space taken
- Decreases update anomalies occurring resulting in data loss
- Normal forms applied at logical design stage
- After ER models have been mapped to initial set of tables
2
Q
What are updat anomalies
A
- Inconsistencies that arise
- When use attempts to update a table containing redundant data
- Through insertion, deletion or modification
- Making these changes will break the data integrity
3
Q
HOw do you resolve / prevent update anomalies?
A
4
Q
What are the normal forms?
A
- Normalisation requires a series of tests
- Checking if table satisfies or violates the rules of a given normal form
- 1NF, 2NF, 3NF
5
Q
What is the first step in normalisation?
A
1NF - First Normal Form
- Most critical only required NF
- Enforces atomic cells
- Where the data comes from the correct domain
- No duplicate rows
- Valid PK needed
6
Q
What is tyhe second step in nomralisation?
A
2NF - Second Normal Form
- Required only when PK is made up of >1 Column (Composite keys)
- Forces there to be only full functional dependencies
- Where all PK column values determine the value of a non-PK column
- A→B
- Therefore we must remove all partially dependent columns to a new table and give that a new PK
7
Q
What is the third step in normalisation?
A
- Ensures the PK uniquely determines all other values in a record
- Transitive functional dependencies = fail 3NF
- A→B but in turn B→C
- Non-PK column if functionally dependent on another Non-PK Column
- So we create a new table where those attributes rely on a new PK exclusively