Home > Database normalization > First normal form

First normal form

Normal form describes the state of database when there is no redundancy or repetition of the same information. Bringing the relationship to the normal form is called database normalization. There are two basics rules without them Database Management System couldn’t work correctly and three more whose make a database more powerful and securable.

In the first post I want to focus on the first normal form.

First normal form

General definition:  Relationalship is in the first normal form if the values of each attributes are atomic and indivisible.

It’s mean that there is no complex type or grouped information. Picture 1 shows the wrong definition of a Sex table. There are  duplication of information in the one column.

Table before normalization

Table before normalization

To solve this problem it is required to redesign this table in such a way that the sex of the different people would be inserted into single table and assigned them as a foreign key like on the picture below:

Table after normalization

Table after normalization

Characteristics that must exist in the first normal form is that the key is defined in relationship and all attributes that are not key functional, dependence on key.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: