SQL
Properties of Relation Table
1. Column values are atomic
2. Column values are of the same kind
3. Each row should unique
4. Each column has a unique name
Normalization
1. It is a design technique which is widely used as a guide in designing relational
databases (OLTP databases)
2. It is a two step process that puts data into a table form by removing repeating
groups and removing duplicated values prompt the relational tables
3. Normalization theory is based on the concept of normal forms
4. Normal forms are cubilative
5. That all tables in a relational db should be in third normal form.
6. The goal of normalization is to have only the primary keys on left hand side of the
functional dependency.
Normalization is a process of removing redundant data from relational tables by splitting
the relational tables in to smaller tables.
Splitting is must be lossless, which means that the tables can be recombined be natural
join to recreate the original table with out creating any redundant data.
1nf
All relational tables by definition are in the first normal form. When a relational table is in
first normal form it contains redundant data.
Redundancy causes update anomalies.
Anomalies are problems that arrive when we insert, update or delete data from a
relational table.