TGViewer
Data Analytics Data Analytics @sqlspecialist · 111K subscribers
Post #540 31.4K
SQL LEARNING SERIES PART-11

Complete SQL Topics for Data Analysis
-> https://t.me/sqlspecialist/523

Let's also learn about Normalization today:

Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity. There are different normal forms, each with specific rules:

#### First Normal Form (1NF):
- Each column contains atomic (indivisible) values.
- There are no repeating groups or arrays.

#### Second Normal Form (2NF):
- Meets the requirements of 1NF.
- All non-key columns are fully functionally dependent on the primary key.

#### Third Normal Form (3NF):
- Meets the requirements of 2NF.
- Eliminates transitive dependencies, where non-key columns depend on other non-key columns.

#### Example:
Consider a denormalized table:
CREATE TABLE orders (
order_id INT PRIMARY KEY,
customer_name VARCHAR(50),
product_name VARCHAR(50),
price DECIMAL(10, 2)
);
Normalized to 3NF:
CREATE TABLE orders (
order_id INT PRIMARY KEY,
customer_id INT,
product_id INT,
order_date DATE,
quantity INT,
total_price DECIMAL(10, 2)
);

CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(50)
);

CREATE TABLE products (
product_id INT PRIMARY KEY,
product_name VARCHAR(50),
price DECIMAL(10, 2)
);
Normalization helps avoid data anomalies and ensures efficient database design.

Share with credits: https://t.me/sqlspecialist

Hope it helps :)
  • 👍 40
  • ❤ 12
  • 🔥 3
  • 👏 1
More from @sqlspecialist
  1. Oct 8, 2026🎓 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗙𝗥𝗘𝗘 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 𝘄𝗶𝘁𝗵 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗲𝘀! 🚀🔥 Upgr…
  2. Oct 7, 2026📊 Kandinsky 6.0 Video: AI-Powered Content Creation for Analysts The new Kandinsky 6.0 Vid…
  3. Oct 7, 2026Alternatively, depending on the Excel version and requirement, I could use functions such…
  4. Oct 7, 2026📊 Data Analyst Interview Series — Part 5 Guys, let's continue our Data Analyst Interview…
  5. Oct 7, 2026🚀𝗣𝗮𝘆 𝗔𝗳𝘁𝗲𝗿 𝗣𝗹𝗮𝗰𝗲𝗺𝗲𝗻𝘁 𝗧𝗿𝗮𝗶𝗻𝗶𝗻𝗴 | 𝗕𝗲𝗰𝗼𝗺𝗲 𝗮 𝗙𝘂𝗹𝗹𝘀𝘁𝗮𝗰…
  6. Oct 7, 2026🔟 What is the difference between UNION and JOIN? Sample Answer: "JOIN combines columns fr…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →