What is normalization?
- SQL course
- Intermediate
- Lesson 88/115
- 4 min
Learn the idea of organising data without repeats.
What is normalization?
Normalization reduces data repetition and improves integrity. It splits tables into organized parts.
-- 1NF: her hücre tek değer
-- 2NF: kısmi bağımlılık yok
-- 3NF: geçişli bağımlılık yokThree key normal forms.
What is normalization? — details
Normalization keeps data consistent. It prevents update, insert and delete anomalies.
For example, if a customer's address is repeated on every order, some rows stay outdated when it changes; normalization keeps the address in one place.
Practice What is normalization?
Move the city to a separate table to approach 3NF for customers.
Starter code
-- separate city
CREATE TABLESample solution
CREATE TABLE cities (
id INT PRIMARY KEY,
name VARCHAR(50)
)Expected output
Tablo oluşturuldu
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 What does normalization reduce?
- The number of tables
- Speed
- Data duplication Correct answer
- Security
Explanation: Normalization reduces data repetition.
2 What does 1NF require?
1NF: each cell holds a ____ value
1NF: each cell holds a single value
Explanation: In 1NF every cell holds a single value; comma-separated lists are not allowed.
3 What is normalization: match the terms
| Term | Meaning |
|---|---|
1NF |
single value |
2NF |
partial dependency |
3NF |
transitive dependency |
anomaly |
inconsistency |