What is First Normal Form, Second Normal and Third Normal Form

04 May,2015 by Jack Vamvas

Question: What is the third normal form (3NF) and how does it differentiate from second normal form (2NF) and first normal form (1NF) ?

Answer:  Before we start with normalization definitions let’s looks at the goals.

Normalization  aims to:

1)      Eliminate redundancy

2)      Store data in the correct table

3)      Eliminate need to restructure data when data is added

How does it achieve these goals?  These definitions give you some basic guidelines.

1NF : The table is organized as an unordered set of data, and there are no repeating columns. Each record is unique identified by a primary key. There is only one value in every cell.

This means all the columns are scalar values. Scalar values means you can’t maintain two values in one cell.

2NF: You don't repeat data in one column of your table because of another column.  All non key fields depend on all components of the primary key. Read more on How to decide on the Primary Key

If a non key attribute is only related to one part of the Primary Key, then the table is not in 2NF.

3NF: Every column in the  table relates only to the table's key . There are no columns that have a column in a table that describes another column in your table which isn't the key.

Notes on how to implement the normal form in design

1)Relationships are maintained with one to one , one to many and many to many relationships

2)3NF is OK for most database designs

3)Look out for attribute splitting. The basis of good database design is a valid data model. Even if data is spread across multiple databases or partitioned , a valid data model will unify the data across the disparate physical locations

Read more on data architect, naming conventions and data integrity

DBA - Database Architect - Data Architect - What's the difference ...

SQL Server - ISO-11179 Naming Conventions and SQL DDL

Where to maintain data integrity rules? - Sqlserver-dba.com

 


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on What is First Normal Form, Second Normal and Third Normal Form


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer