RelationalDBDesignRelationalDBDesign

Normal Forms
«Prev
Next»
## Second Normal Form Limitations

## Problems with 2NF Relations

### Glossary terms

### Normalization - Quiz

Lesson 11

This module covered database normalization up to 2NF or second normal form.
It identified the requirements of, and procedures for reaching, 1NF and 2NF.

Along the way, it introduced the concepts of normalization, repeating groups, and functional dependencies.

Having completed this module, you should now be able to:

Along the way, it introduced the concepts of normalization, repeating groups, and functional dependencies.

Having completed this module, you should now be able to:

- Define normalization:
*normalization*is the process of applying increasingly stringent rules to a relational database to correct any problems associated with poor design. - Explain requirements for first normal form (1NF):
*first normal form (1NF):*A table is in first normal form if it contains no repeating groups. - Describe the limitations of (1NF) first normal form.
- Identify repeating groups: When an attribute has more than one value in a table row it is called
*repeating group*. - Explain the requirements for
*second normal form (2NF)*

*Identify functional dependency:*A one-way relationship between two attributes so that, for any unique value of one attribute, there is only one value of the other attribute.- Describe the limitations of (2NF) second normal form.

Although second normal form eliminates problems from many relations, you will occasionally run into relations that are in second normal form yet still exhibit anomalies.

Assume, for example, that each new DVD title that DistributedNetworks carries comes from one distributor and that each distributor has only one warehouse that has only one phone number. The following relation is therefore in second normal form:

Assume, for example, that each new DVD title that DistributedNetworks carries comes from one distributor and that each distributor has only one warehouse that has only one phone number. The following relation is therefore in second normal form:

Item (item_numb, title, distrib_numb, warehouse_phone_number)For each item number, there is only one value for the item's title, distributor, and warehouse phone number. The following anomalies exist:

- There is one insertion anomaly: You cannot insert data about a distributor until you have an item from that distributor.
- There is one deletion anomaly: If you delete the only item from a distributor, you lose data about the distributor.
- There is also a modification anomaly: The distributor's warehouse phone number is duplicated for every item the company gets from that distributor.

*concatenated primary key:*A primary key made up of more than one field.*denormalization:*To move a table to a lower normal form (e.g., from 3NF to 2NF).*First normal form (1NF):*A table is in first normal form if it contains no repeating groups.*functional dependency:*A one-way relationship between two attributes so that, for any unique value of one attribute, there is only one value of the other attribute.*multi-field determinant:*A determinant consisting of more than one field.*normal form:*A set of theoretical rules for the design of database tables.*normalization:*The process of applying increasingly stringent rules to a relational database to correct any problems associated with poor design.*Repeating groups:*An attribute that has more than one value in a table row.*second normal form (2NF):*A table is in second normal form when every attribute is functionally dependent on the entire primary key.*Requirements analysis:*The stage in the database design cycle when designers find out everything they can about the data the client needs to store in the database and the conditions under which that data needs to be accessed.

Before you move on to the next module, take the following quiz to check your knowledge of normalization to 2NF.

Normalization - Quiz

Normalization - Quiz