Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What is normalization? What are different types of normalization
What is normalization? What are different types of normalization?
✍: Guest
It is set of rules that have been established to aid in the design of tables that are meant to
be connected through relationships. This set of rules is known as Normalization.
Benefits of normalizing your database will include:
1. Avoiding repetitive entries
2. Reducing required storage space
3. Preventing the need to restructure existing tables to accommodate new data.
4. Increased speed and flexibility of queries, sorts, and summaries.
Following are the three normal forms
First Normal Form
For a table to be in first normal form, data must be broken up into the smallest units
possible.In addition to breaking data up into the smallest meaningful values, tables in
first normal form should not contain repetitions groups of fields.
For in the above example city1 and city2 are repeating.In order that this table to be in
First normal form you have to modify the table structure as follows.Also not that the
Customer Name is now broken down to first name and last name (First normal form data
should be broken down to smallest unit).
Second Normal form
The second normal form states that each field in a multiple field primary keytable must
be directly related to the entire primary key. Or in other words, each non-key field should
be a fact about all the fields in the primary key.
In the above table of customer, city is not linked to any primary field.
That takes our database to a second normal form.
Third normal form
A non-key field should not depend on other Non-key field. The field "Total" is dependent
on "Unit price" and "qty".
So now the "Total" field is removed and is multiplication of Unit price * Qty.
Note :- Fourth and Fifth normal form is left as a home work to users.
2007-10-25, 6997👍, 0💬
Popular Posts:
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What is the difference between Session State and ViewState? ViewState is specific to a page in a ses...
What will happen in these three cases? if (a=0) { //somecode } if (a==0) { //do something } if (a===...
The following variable is available in file1.c, who can access it? static int average; Answer: all t...
What will be printed as the result of the operation below: #define swap(a,b) a=a+b;b=a-b;a=a-b; void...