Sql Normalization — Free Sql Tutorial

Learn Sql Normalization in Sql with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Sql Normalization — Free Sql Tutorial

Learn Sql Normalization in Sql with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Sql Normalization in Sql with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Sql Normalization in Sql

Normalisation is the process of organising a database to reduce data redundancy and improve data integrity. The rules are called Normal Forms (NF).

1NF: Each column must have atomic (indivisible) values. No repeating groups. Each row must be unique. No multi-value columns like "Maths,Science,English" in one cell.

2NF: Must be in 1NF + every non-key column must depend on the ENTIRE primary key (no partial dependencies). This applies when you have a composite primary key.

3NF: Must be in 2NF + no transitive dependencies — non-key columns must not depend on other non-key columns. E.g., if you have student_id → dept_id → dept_name, move dept_name to a departments table.

Sql Normalization — Syntax

-- BAD: violates 1NF (multiple values in subjects)
-- student_id | name  | subjects
-- 1          | Priya | Maths,Science,English

-- GOOD: 1NF (separate rows or table)
-- student_id | name  | subject
-- 1          | Priya | Maths
-- 1          | Priya | Science

-- GOOD: 3NF (separate departments table)
-- students: id, name, dept_id
-- departments: dept_id, dept_name, dept_head

Learn Sql Normalization step by step with Syllab's free interactive Sql tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Sql course →