Normalization ( 2 NF)

Piyush Kulkarni
2 min readMar 18, 2022

We talked about 1NF in the previous post.

We need to understand Functional Dependencies first.

Not in 2 NF

There are many Rons across many departments. That’s why Name and Dept together can form a Primary Key here. Key attributes are Name & Dept. Age and Dept Head are non-key attributes.

Functional Dependency :

{ Name ,Dept } ⤍ Age

Just Name or Dept is not enough to determine age. Together Name & Dept determines one definite value of Age. That’s functional dependency.

Age is dependent on the entire key.

2 NF Rule: Data is already on 1 NF form and additionally, all non key attributes must be functionally dependent on entire key (not partial key).

{ Dept } ⤍ Dept Head

Dept Head is not dependent on the entire key, but only partial key. That’s a violation of 2 NF form.

What could bring it into 2 NF form?

2 NF
2 NF

{ Name, Dept } ⤍ age

{ Dept } ⤍ Dept Head

Now all non-key attributes depend on entire key attributes.

This complies with 2 NF form.

Writer: Piyush Kulkarni

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response