Categories: SQL Tutorials

What isFirst Normal Form | Normalization 1NF with examples

In my previous article i have explained the normalization with examples.In this article i would like to explain First Normal Form of data. We need to check all the normal forms to make your database normalized.This article gives you information about first normal form in depth.First Normal Form is nothing but the property of relation in relational database.In this article i would like to give examples of converting the De-normalized table in to First Normal Form table.

What is First Normal Form (1NF) ?

E.F.Codd has presented the paper 1971 and he has given the definition of 1NF in that paper.When none of domains have any sets as elements that relation will be called as 1NF. The 1NF is normal form will satisfy following conditions,

1.The data in this normal form contains Atomic values.

So here question in mind that what exactly mean by atomic values.

Atomic Values : The Atomic values are values where single cell contains single value.

Example of Atomic values :

Lets say there is one column in table named Department and it has two values in cell ; Oracle,PL SQL,SQL.Means One cell contains different values.

2.Each record needs to be unique and there should not be any repeating groups.

So here another question comes to picture is about repeating groups.

Repeating Groups : Repeating group means a table contains 2 or more values of columns that are closely related.

Example of Repeating groups :

The repeating groups means if you have ‘Name’ and ‘Salary1′,’Salary2′,’Salary3’ columns which contains only salary data.These are all repeating group data.

The first normal form enforces following criteria :

1.User needs to eliminate repeating group in individual tables.

2.User need to create separate table for each set of related data.

3.User need to define the primary key for related data.

First Normal Form (1NF ) Example :

Lets take example for de-normalized table,

Employee NoEmployee NameDepartment
1RohanSQL,Oracle
2RajivPL SQL
3RamJava

The above table is denormalized table.So here everyone have question in mind that why this table is denormalized format?The Department column does not contain Atomic values for Employee no. 1 .There is step-wise process to convert De-Normalized table in to normalized form.

Step 1 :

Check the automic values and create table with new column and remove that atomic values.So User need to create one new table with Atomic values. So in following table ,each cell contains only one value.

Employee No Employee Name Department Department1
1 Rohan SQL   Oracle
2 Rajiv PL SQL  
3 Ram Java  

Step 2 :

The table is converted in to Atomic values table but repeating group is still there in the table. User need to eliminate reporting groups. In above table the Department and Department1 are two repeating groups.User needs to split single table in to two different tables.

First Table : Employee table

Employee NoEmployee Name
1Rohan
2Rajiv
3Ram

Second Table: Department table

Employee NoDepartment
1SQL
1Oracle
2PL SQL
3Java

These are two tables which are in to normalized form.I hope you like this article on First Normal Form.If you like this article or if you have any suggestions with the same kindly comment in comments section.

Amit S

Oracle Consultant with vast experience in Oracle BI and PL/SQL Development. Amiet is the admin head of this website who contributes by preparing tutorials and articles related to database technologies. He is responsible to manage the content and front-end of the website.

Recent Posts

Application Support Engineer Day to day responsibilities

In my previous articles I have given the roles and responsibilities of L1,L2 and L3…

12 hours ago

What is mean by SLA ( Service Level Agreement) with Examples?

In my previous articles i have given the hierarchy of production support in real company…

3 days ago

What is Production support Hierarchy in organization?

In this article i would like to provide information about production support organization structure or…

3 days ago

What are roles and responsibilities for L3 Support Engineer?

In my previous article I have given roles for L1 and L2 support engineer with…

3 days ago

What are roles and responsibilities of L2 Engineer?

I have started this new series of how to become application support engineer. This article…

3 days ago

What are Roles and Responsibilities of L1 Support Engineer with real industry examples?

In this series we are starting with Roles and responsibilities of L1 support engineer .…

4 days ago