Jump to content

Did this help you?  

  1. 1. Did this help you?

    • Array
      0


Recommended Posts

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.

In easy English, it means take similar stuff out of a collection of data and place them into tables. Keep doing this for each new table recursively and you\'ll have a Normalized database. 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.

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

Normalization of a database helps in modifying the design at later times and helps in being prepared if a change is required in the database design. Normalization raises the efficiency of the database in terms of management, data storage and scalability.

 

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

These rules are 5 in number (with one extra one stuck in-between 3&4) and they are:

 

1st Normal Form or 1NF:Each Column Type is Unique.

 

2nd Normal Form or 2NF:

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.

 

3rd Normal Form or 3NF:

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.

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

Now if these 3NF are achieved, the database is considered normalized. But there are three more \'extended\' NF for the elitist.

These are:

 

BCNF (Boyce & Codd):

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

 

4NF:

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

 

5NF:

There should be no cyclic dependencies in a composite key.

 

Much of database design depends on how YOU want to keep the data. In real life situations often you may find it more convenient to store data in tables designed in a way that does fall a bit short of keeping all the NFs happy. But that\'s what databases are all about. Making your life simpler.

Link to comment
https://forums.phpfreaks.com/topic/688-whats-database-normalization/
Share on other sites

  • 4 weeks later...

IIRC, doesn\'t a relational RDBMS only have to satisfy Boyce Codd NF to be termed \"relational\".

 

This is useful stuff for \"noobs\" - maybe you should consider doing more or linking to database theory resources. I find that 90% of peoples\' problems aren\'t with code and syntax but with not understanding basic database operations.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.