Home › Guides › Normalization in DBMS
Tech Explained · 2026What Is Normalization in DBMS? 1NF, 2NF and 3NF Explained With a Worked Example
Normalization in DBMS is the process of splitting one wide table into smaller related tables so each fact is stored once. You apply it in stages called normal forms: 1NF removes repeating groups, 2NF removes partial dependencies on part of a composite key, and 3NF removes columns that depend on other non-key columns. Most production schemas stop at 3NF.
- Normalization is a test, not a style. For every column you ask one question: what does this value depend on? If the answer is not the whole primary key, the column is in the wrong table.
- Three passes do the work. 1NF kills multi-value cells, 2NF kills columns that depend on part of a composite key, 3NF kills columns that depend on another column.
- The payoff is write correctness, not storage. One hospital name stored in 48,000 rows and spelled four ways is what costs you a weekend.
- Analytics wants the opposite. Microsoft's Power BI guidance tells you to keep fact and dimension tables separate and flatten snowflaked dimensions, so your report model is deliberately less normalized than your source database.
- Postgres will not save you. It indexes primary keys automatically and foreign keys never, which is why half of "normalization made my joins slow" is a missing index.
Your claims table has 48 columns. Three of them hold a hospital name, called hospital_name, hospital_nm and hosp_name_new, and nobody left a note saying which one the finance report reads. Somebody renamed a hospital last March, the rename landed in one column and not the others, and the monthly payout figure now disagrees with itself depending on who runs it. That is not a reporting bug. That is a schema that never got normalized, finally sending the invoice.
How Normalization in DBMS Actually Works
Every table makes a promise: one row per key, and every non-key column is a fact about that key and nothing else. Normalization in DBMS is the process of finding columns that break the promise and moving them to the table where they belong.
Functional dependency: the one idea behind every normal form
A functional dependency means that if you know A, you know B, written A → B. If you know hospital_code, you know hospital_name. That holds whether or not any claim exists, which is the tell: the name is a fact about the hospital, not about the claim, so it has no business in the claims table. Once you can spot a dependency, the normal forms stop being definitions to memorise and become three places to look. 1NF looks inside the cell, 2NF looks at part of the key, 3NF looks at the other columns.
One raw export, three passes, six tables
Each pass only moves columns out. No value is lost, it just stops repeating.
Structure of the worked example in this guide, checked 28 November 2026.
1NF, 2NF and 3NF as a checklist you can use
| Form | The rule in one line | Symptom in your data | The fix |
|---|---|---|---|
| 1NF | One value per cell, no repeating groups | A column holding PROC-220, PROC-515 and a LIKE '%PROC-515%' query in your codebase |
One row per value, in a child table |
| 2NF | Every non-key column depends on the whole composite key | The claim amount repeats identically on every procedure row of the same claim | Move those columns to a table keyed by the part they depend on |
| 3NF | No non-key column depends on another non-key column |
hospital_code and hospital_name travelling together, and disagreeing |
Lift the pair into a lookup table, keep the code as a foreign key |
| BCNF | Every determinant is a candidate key | Rare. An overlapping-key edge case in scheduling or allocation tables | Decompose on the determinant, and only if you can show the anomaly |
Normalization in DBMS Tutorial: One Claims Table From 1NF to 3NF
Take a two-person data team at a mid-size Indian health insurer. Their claims table began life as an Excel export and still looks like one.
| claim_id | policy_no | member_name | hospital_code | hospital_name | procedure_codes | claim_amount |
|---|---|---|---|---|---|---|
| 90114 | PH-7781 | A. Nair | HOSP-114 | City General Hospital | PROC-220, PROC-515 | 186400.00 |
| 90115 | PH-7781 | A Nair | HOSP-114 | City General Hosp. | PROC-220 | 41250.00 |
| 90116 | PH-9032 | R. Iyer | HOSP-114 | City General Hospital | PROC-108, PROC-220, PROC-515 | 512900.00 |
Two defects are visible already, and both are ordinary. One hospital code carries two spellings of its name, and one policy carries two spellings of the member's. Nobody did anything stupid; the rows arrived from two intake screens eleven months apart.
A database normalization example you can run in 10 minutes
Audit before you change anything. This asks whether hospital_code → hospital_name is actually true in the data you have, and if it returns rows the dependency is already broken.
-- Which codes carry more than one spelling of the same name?
SELECT hospital_code,
COUNT(DISTINCT hospital_name) AS name_variants,
COUNT(*) AS affected_rows
FROM claims_raw
GROUP BY hospital_code
HAVING COUNT(DISTINCT hospital_name) > 1
ORDER BY affected_rows DESC;
Run it again with policy_no and member_name. The row count it returns is the number to put in the ticket when you ask for time to fix the schema, because it is a defect count rather than an opinion about design.
Normalizing a messy table in five passes
Each pass ends in something you can show a colleague, which is what stops the work stalling.
List every column and its real owner
Beside each column name write the thing the value is a fact about: claim, policy, member, hospital, procedure. The list groups itself.
Make every cell atomic
Any column holding a comma-separated list becomes a child table. Deliverable is claim_procedure and the deletion of every LIKE '%PROC-%' query you own.
Name the key, test every column against it
The key is now (claim_id, procedure_code). Anything identical across all procedure rows of one claim depends on half the key, so it moves to claim.
Hunt the column-to-column dependencies
Inside claim, ask of each pair whether one determines the other. Code-and-name pairs leave for hospital, member and procedure_ref.
Add constraints, then backfill
Foreign keys, NOT NULL, a unique constraint on every natural key, indexes on the foreign keys. The migration should fail loudly on the rows your audit found.
Sequence used in the worked example in this guide, checked 28 November 2026.
The 3NF schema, in DDL
Six tables, every value stored once. Copy the one naming oddity: procedure_ref rather than procedure, because PROCEDURE is a reserved word in standard SQL and you will lose an afternoon to quoted identifiers if you fight it.
CREATE TABLE member (
member_id BIGINT PRIMARY KEY,
member_name TEXT NOT NULL,
member_city TEXT NOT NULL
);
CREATE TABLE policy (
policy_no TEXT PRIMARY KEY,
member_id BIGINT NOT NULL REFERENCES member(member_id)
);
CREATE TABLE hospital (
hospital_code TEXT PRIMARY KEY,
hospital_name TEXT NOT NULL,
hospital_city TEXT NOT NULL
);
CREATE TABLE procedure_ref (
procedure_code TEXT PRIMARY KEY,
procedure_name TEXT NOT NULL
);
CREATE TABLE claim (
claim_id BIGINT PRIMARY KEY,
policy_no TEXT NOT NULL REFERENCES policy(policy_no),
hospital_code TEXT NOT NULL REFERENCES hospital(hospital_code),
claim_amount NUMERIC(12,2) NOT NULL CHECK (claim_amount >= 0),
status TEXT NOT NULL
);
CREATE TABLE claim_procedure (
claim_id BIGINT REFERENCES claim(claim_id),
procedure_code TEXT REFERENCES procedure_ref(procedure_code),
PRIMARY KEY (claim_id, procedure_code)
);
CREATE INDEX ix_claim_hospital ON claim(hospital_code);
CREATE INDEX ix_claim_policy ON claim(policy_no);
Now the rename that started the mess. Before, it touched every claim row that hospital ever appeared in, and any row the WHERE clause missed stayed wrong forever. After, it is one row that nothing can contradict.
-- Before normalizing: thousands of rows, and a silent miss on the misspelled ones
UPDATE claims_raw
SET hospital_name = 'City General Hospital, Jubilee Hills'
WHERE hospital_code = 'HOSP-114';
-- After: one row
UPDATE hospital
SET hospital_name = 'City General Hospital, Jubilee Hills'
WHERE hospital_code = 'HOSP-114';
Getting the flat row back is a join, and this is the part people fear without cause. Five joins, every one landing on a primary key or an indexed foreign key, which is cheap for reasons set out in our guide to how database indexing works.
SELECT c.claim_id,
m.member_name,
h.hospital_name,
STRING_AGG(p.procedure_name, ', ' ORDER BY p.procedure_name) AS procedures,
c.claim_amount
FROM claim c
JOIN policy pol ON pol.policy_no = c.policy_no
JOIN member m ON m.member_id = pol.member_id
JOIN hospital h ON h.hospital_code = c.hospital_code
JOIN claim_procedure cp ON cp.claim_id = c.claim_id
JOIN procedure_ref p ON p.procedure_code = cp.procedure_code
WHERE c.claim_id = 90114
GROUP BY c.claim_id, m.member_name, h.hospital_name, c.claim_amount;
Also read: What are ACID properties in DBMS, because that whole migration belongs inside one transaction.
The limits that punish wide tables
Nobody normalizes to save disk. These are the walls a flat table eventually hits.
PostgreSQL Appendix K limits page for version 18, the current major release, shipped 25 September 2025; the MySQL 9.5 reference manual on column count and row size limits; Supabase free-plan documentation. All checked 28 November 2026.
Those four numbers settle a lot of arguments. PostgreSQL's limits appendix caps a table at 1,600 columns and then adds the real constraint, that the tuple must fit in a single 8,192-byte heap page, so 1,600 BIGINT columns fails on insert well before the documented maximum. MySQL's manual caps a row at 65,535 bytes regardless of engine, with InnoDB holding you to slightly under half a page, roughly 8 KB at the default 16 KB page size. You will not meet these designing an application. You will meet them the third time somebody adds just one more column to the reporting table. To practise tonight, a Supabase free project gives you a 500 MB Postgres database, and their documentation notes free projects pause after a week of inactivity, so export anything you care about.
Normalization vs Denormalization: Which One Is the Right Answer
These get framed as opponents, which is the wrong model. They sit at opposite ends of the same pipeline: you normalize where data is written and denormalize where it is read.
| Criterion | Normalized (3NF) | Denormalized (star schema or flat table) |
|---|---|---|
| Optimised for | Correct writes, one row changed per fact | Fast reads, fewer joins per query |
| Natural home | System of record: the claims app, the order service | Warehouse, lakehouse, BI semantic model |
| Update cost | One row, wherever the fact changes | Rebuilt by a pipeline, never edited in place |
| Typical failure | Missing index on a foreign key, so joins crawl | Two copies of a dimension drift, so two dashboards disagree |
| Who owns it | Backend or application engineer | Data engineer or analytics engineer |
Here is the call I would make and the cost I accept for it. Normalize the system of record to 3NF, stop there, and never let a report read it directly. Build the reporting layer as a separate denormalized model that a pipeline refreshes. You now maintain a pipeline, and your numbers are only as fresh as its last run. I will take that every time over one table trying to serve both masters and quietly growing to 48 columns.
The reporting side is not a matter of taste either. Microsoft's Power BI star schema guidance states that a well-structured model should contain tables that are either dimension-type or fact-type and that you should avoid mixing the two in a single table, with one exception where a snowflaked dimension should be denormalized into a single model table. The shape you worked for gets deliberately flattened on the way into Power BI. That is the handoff, not a contradiction, and the target shape is covered in our guide to star schema modelling and taught live in the Data Analyst course for SQL, Power BI and PL-300.
The honest caveat: normalization theory past 3NF is mostly academic. You might deliberately decompose for BCNF once in a career, in a scheduling table with overlapping candidate keys, and 4NF or 5NF almost never. Learn 1NF through 3NF properly and you have what the job needs. Memorising higher forms to pass a viva is a different activity from designing databases, and it is worth being honest with yourself about which one you are doing today.
Where You Will Meet Normalization in Real Work
Inheriting a schema nobody documented. A data engineer joins, finds a 60-column table feeding four dashboards, and has to decide what is safe to split. The audit query above is the opening move: it names the dependencies the data already violates, which is also a list of bugs you fix for free.
Building the ingestion layer of a lakehouse. Landing source tables into bronze and modelling them into silver is a normalization decision on every table, and the DP-700 syllabus treats dimensional modelling as core rather than optional. That is the spine of the Microsoft Fabric data engineer track for DP-700 and DP-900, and the free webinars walk through a lakehouse build if you want to see the work before paying for anything. Also read: What is ETL, and when ELT wins.
Making an AI feature answer correctly. Text-to-SQL and retrieval over structured data both degrade sharply on a badly modelled schema, because the model has to guess which of three hospital name columns is authoritative. Clean 3NF sources plus an explicit semantic layer is most of the accuracy work, which is why schema design turns up in AI engineering work on RAG and agents and in the generative AI developer track rather than only in database courses. When that source database runs on managed Postgres or Aurora, the operational half belongs to the AWS solutions architect and DevOps path; the full certifications overview maps which credential covers which layer.
What Usually Goes Wrong With Normalization
The failure is almost never not normalizing enough. It is one of these four, and the first does the most damage because it looks like good practice.
Four ways this goes wrong in production
Each one has a symptom you can recognise this week.
Normalizing the reporting model
Someone applies 3NF to a Power BI model, snowflakes every dimension, and the report slows while the DAX gets harder. Symptom: six lookup tables hanging off one dimension and a measure nobody can debug.
Flatten dimensionsSurrogate keys with no natural key constraint
Every table gets an auto-increment id, nothing is ever rejected, and the same hospital lands three times. Symptom: a lookup table with more rows than real entities.
Add UNIQUEUnindexed foreign keys
Postgres indexes primary keys and unique constraints automatically, foreign keys never. Symptom: joins that were instant in dev crawl in production and the plan shows a sequential scan on the child table.
Index the FKLookup tables for two values
A status column holding active and closed becomes a status_ref table with two rows and a join on every query. Symptom: more tables in the diagram than concepts in the business.
Postgres indexing behaviour per the PostgreSQL documentation, checked 28 November 2026.
-
Audit first, migrate second. Every broken dependency the
COUNT(DISTINCT ...)query finds will block a foreign key later. Pick the winning spelling before you write the constraint, not during an outage. - Backfill inside one transaction. Create the tables, populate them, add constraints, then switch reads. Half-migrated schemas are where real data loss happens.
-
Keep the flat shape alive. Ship a
CREATE VIEW claims_flat AS ...wrapping the join above so existing reports keep working while you move them one at a time.
Learn data modelling the way the job uses it, from 3NF sources to a Fabric lakehouse
A live weekend program covering Microsoft Fabric data engineering for the DP-700 certification, with DP-900 fundamentals included. Hands-on projects, mentor support and placement guidance, with the next batch in January 2027.
Explore the course
How to Learn Normalization in DBMS Properly
Reading about normal forms teaches you the vocabulary and almost nothing else. The skill is pattern recognition on real columns, and it comes from running the audit query on tables you did not design and then arguing with someone about where a column belongs. Load a messy public dataset into a free Postgres project, run the dependency check, decompose it. Two hours of that beats a chapter of theory. If you want the structured version, the modelling sequence in the live Fabric data engineer program runs from relational sources through dimensional models in a live class, where the feedback is immediate, and a free demo class is the cheapest way to test whether the teaching style suits you.
Related guides
- What Is a Data Warehouse? is the next layer along, where normalized tables get reshaped on purpose.
- SQL Commands Cheat Sheet 2026 covers the DDL and join syntax behind every snippet here.
- SQL vs NoSQL in 2026 answers the obvious follow-up: what happens to normal forms when there are no tables.
- What Is a Semantic Layer? is the piece that stops two dashboards disagreeing after you denormalize.
- Data Engineer Interview Questions 2026 is where this gets asked, usually as a schema design prompt.
- Data Engineer Salary in India 2026 shows what the modelling skill is worth once you can do it under pressure.
Frequently asked questions
What is normalization in DBMS in simple words?
It means storing each fact in exactly one place. Instead of repeating a hospital's name on every claim row, you keep it once in a hospital table and reference it by code. Changing a fact then means changing one row, so your data cannot disagree with itself.
What are 1NF, 2NF and 3NF with examples?
1NF means no multi-value cells: PROC-220, PROC-515 in one field becomes two rows. 2NF means no column depends on only part of a composite key: with a key of (claim_id, procedure_code), the claim amount depends on claim_id alone, so it moves to a claim table. 3NF means no column depends on another non-key column, so hospital_name leaves with hospital_code for a lookup table.
Is 3NF enough or should I normalize to BCNF?
3NF is enough for nearly every production schema. BCNF only differs when a table has overlapping candidate keys, which appears in a narrow set of scheduling and allocation designs. Go further when you can demonstrate the anomaly with real rows, not because a syllabus lists it.
What is the difference between normalization and denormalization?
Normalization splits tables so each fact is stored once, which protects writes. Denormalization merges them so reads need fewer joins, which speeds up analytics. They are not rivals: normalize the transactional database, denormalize a separate copy for reporting, and let a pipeline refresh it.
Does normalization make queries slower?
Usually not, and when it does the cause is a missing index rather than the joins. PostgreSQL indexes primary keys and unique constraints automatically but never foreign keys, so a normalized schema with unindexed foreign key columns scans child tables. Add those indexes and most of the slowdown goes away.
How do I find normalization problems in a table I did not design?
Pick a pair of columns where one looks like a code and the other its description, then run SELECT code_col, COUNT(DISTINCT desc_col) FROM t GROUP BY code_col HAVING COUNT(DISTINCT desc_col) > 1. Rows coming back mean the dependency is already broken. Repeat for every code-and-name pair and you have your decomposition plan and your cleanup list at once.
Is normalization still relevant in 2026 with NoSQL and lakehouses?
Yes, because the question does not depend on the storage engine. A document database lets you nest the repeating group instead of splitting it, trading write complexity for read speed, which is the same decision under another name. Lakehouse table formats serve the denormalized end of the pipeline, and that only works if something upstream kept the facts straight.
About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Tools and versions change quickly; commands and figures cited were checked on 28 November 2026.



