what's database normalization

19
What's Database Normalization ?

Upload: harish-gyanani

Post on 24-Dec-2014

950 views

Category:

Education


3 download

DESCRIPTION

What's database normalization

TRANSCRIPT

Page 1: What's database normalization

What's Database Normalization ?

Page 2: What's database normalization

What is Normalization???

Page 3: What's database normalization

Need Definition…

Page 4: What's database normalization

Normalization is the process where a database is designed in a way that removes redundancies, and….increases the clarity in organizing data in a database.

Page 5: What's database normalization

Confused with Definition

Page 6: What's database normalization

In easy English, it means take similar stuff out of a collection of data and place them into tables.

Simple Definition Explanation

Page 7: What's database normalization

Keep doing this for each new table recursively and you'll have a Normalized database.

Page 8: What's database normalization

From this resultant database you should be able to recreate the data into it's original state if there is a need to do so.

Page 9: What's database normalization

The important thing here is to know when to Normalize and when to be practical. That will come with experience. For now, read on...

Page 10: What's database normalization

How to use?????

Page 11: What's database normalization

Normalization of a Database is achieved by following a set of rules called 'forms' in creating the database.

Page 12: What's database normalization

1st Normal Form or 1NF 2nd Normal Form or 2NF 3rd Normal Form or 3NF BCNF (Boyce & Codd) 4NF 5NF

Normal Forms

Page 13: What's database normalization

Each Column Type is Unique.

1st Normal Form or 1NF:

Page 14: What's database normalization

The entity under consideration should already be in the 1NF and all attributes within the entity should depend solely on the entity's unique identifier.

2nd Normal Form or 2NF:

Page 15: What's database normalization

The entity should already be in the 2NF and no column entry should be dependent on any other entry (value) other than the key for the table.

3rd Normal Form or 3NF:

If such an entity exists, move it outside into a new table.

Page 16: What's database normalization

The database should be in 3NF and all tables can have only one primary key.

BCNF (Boyce & Codd):

Page 17: What's database normalization

Tables cannot have multi-valued dependencies on a Primary Key.

4NF:

Page 18: What's database normalization

There should be no cyclic dependencies in a composite key.

5NF:

Page 19: What's database normalization