Normalization Rules (Merise)
Normal forms are rules that are designed to avoid modeling errors.
Currently, there are six or seven normal forms. We will discuss the first three.
First Normal Form
The value of an entity (or association) Property is fixed uniquely as soon as the entity concerned is known (concerned entities).
If the number of vehicles is an attribute of the “Reservation” entity, you can only indicate the total number of vehicles for a reservation. You must therefore make one reservation per category of rental vehicle (cardinalities1,1).
If the number of vehicles is an attribute of the association, you can specify the number of vehicles reserved for each category in the association. You can therefore make a single reservation for several categories of vehicle (cardinalities 1,N).
Second Normal Form
The value of an association Property is set only when all the entities concerned are known.
The fact that the car category is an attribute of the “Car Contract” association assumes that the car category may change from one contract to the next, which would not be very honest.
If the car category is to be independent of the contract, it must be an attribute of the “Car” entity.
Third Normal Form
A Property must directly and uniquely depend on the entity it describes.
If the “Category Price List” is an attribute of the “Car” entity, this indicates that two cars in the same category can have a different “Category Price List”. To avoid this, we need to create a “Category” entity that contains the price list.
*This rule is used to reveal concepts that were not found during the first draft of the data model.