Master SQL Development (LinkedIn) Flashcards
Describe Normalization
The process of organizing data into multiple tables to reduce redundancy and prevent inconsistencies
What is 1NF?
We need to eliminate repeating columns or groups of data. Break data into the smallest pieces you can and provide a column for each piece.
What is 2NF?
Eliminate redundant data.
What is 3NF
Eliminate columns not dependent on key filed
The data in a field is not determined by data in another field that is not part of the field e.g. calculations
What are some of the things we can do to get out table into 1NF?
Add a unique identifier for each record in the table
Break down information into the smallest pieces you can e.g. name consists of forename and surname
What’s the test for the third normal form?
Looking at a piece of data, does it uniquely identify the entity (apart from the key). The answer should be no.