Pictures can be seen above there is an awkwardness that is: 1. kardinalitas part of the project 2. kardinalitas between officials with the project 3. the absence of a key dependent on the entity
After structured correctly akan as:
After which the repair will be clearly visible: 1. Kardinalitas a part of - part of a project with which the 1-N is one or more parts have more or many projects 2. An employee with kardinalitas the project, where the relationship between them is not related to each other, where the employee does not have a project but a part that has a project. And the only employee working on the project and only have a dependent 3. On an entity have a dependent as a unique key of an entity. And
In the normalization that is there: 1. On a 1NF occur where the multiplication or similar field is the same and allows the field to be empty in which,
Flow mapping of the above we can see a 1NF be fulfilled, after that we can make it 2NF. Normal form 2NF met in a table if it meets the form of 1NF, and all the attributes than the primary key, have a full Functional Dependency on primary key. A table does not meet 2NF, if there are attributes that ketergantungannya (Functional Dependency) are only partial (only depending on the part of the primary key). If there are attributes that have no dependence on the primary key, then the attributes must be moved or removed. View from above flow mapping 2NF know that we also have met the 3NF can be made. Normal form 3NF fulfilled if the form meets 2NF, and when no non-primary key attribute that has a dependence on non-primary key attributes of the other, or with the term (transitive dependencies).
Normalization is process of database structure forming so mainly part of ambiguity can be removed. Normalization phase is begun from lightest phase (1NF) until tightest (5NF). Usually, only coming up with level 3NF or BCNF because has adequate enough to yield the tables of which with quality goodness.
target executed with Normalization that is
oOptimizing table structures
oIncreasing speed
oRemoving same data inclusion
oMore efficient in storage media purpose
oReducing redundancy
oAvoiding anomaly (insertion anomalies, deletion anomalies, and anomaly's update).
oIncreased data integrity
Design Process Database ( in evaluating to repeat)
The process includes:
·Gathering user or business's requirement
·Develop E-R Model bases user or business's requirements
·Convert E-R Model go to relationship gatherings (table)
·Relationship normalization to remove anomaly
One tables put in order is ( efficient) or normal if fulfilling 3 this the following size measure condition :
-therefore the decomposition shall be secured safe (Lossless Join Decomposition). It's mean, after that table is untied / at decomposition becomes new tables, that new tables can result original table equally exactly
-Its preserve dependency functional at the moment data change (Dependency Preservation).
Don't breach Boyce-Code Normal Form (BCNF)
-If the third criterion (BCNF) can't be accomplished, therefore at least that table not breach the third Normal Form (3rd Normal Form/ 3NF).
Depended Is Functional :
Functional Depended that is which drawing / calculatinga relation of menujukkan one link. A told attribute functionally dependant esteem to determine other attribute value . used device is to delegation depended is functional of it self artribut .
First Normal Format- 1Nf is :
A tables told is on normal formatthereno at format do not be normalized, where happened multiplex a[n area of sort;jenis available area and enable whichis empty cancelation
For example College Student Data as follows:
Or
The tables above are ineligible for 1NF. Decomposition becomes:
- Collegian table:
- Hobby table:
Second Normal Form - 2NF
2NF's normal form is accomplished in one table if have accomplished 1NF's form, and all attribute besides primary key, as whole to have Functional Dependency on primary key. One table will not accomplishes 2NF, if there is attribute which its dependency (Functional Dependency) just have partial character only (just depend on a part of primary key). If anything attribute that have no dependency for primary key, therefore that attribute have to move or is removed. Functional dependency X -->Y is said full if erasing an attribute A of X its mean that Y no longer functional dependent. Functional dependency X -->Y is said partial if erases an A's attribute of X matter Y still functional dependent. Relationship scheme r on 2NF form if each attribute non primary key A ER full dependent functionally on primary key R.
This following table accomplishes 1NF, but excluding 2NF:
Third Normal Form - 3NF
3NF's normal form is accomplished if have accomplished 2NF's form, and if no attribute non primary key that have dependency to attribute non primary key another (transitive dependency).
This Following collegian table measures up 2NF, but doesn't accomplish 3NF:
Boyce-Codd Normal Form (BNCF)
Boyce Codd Normal Form has stronger compulsion of third Normal form. To become BNCF, relationship shall in first Normal form and each attribute is forced dependent on function on attribute super key.
Fourth and fifth Normal Form
Relationship in fourth normal form (4 NF) if relationship in BCNF and not contains of multi value dependency. To remove multi value dependency from one relationship, we are divide relationship become two new relationships. Each relationship contains of two attributes that have multi value relationship.
Relationship in fifth normal form (5NF) get business with property is called join without marks sense information loss (lossless join). The fifth normal Form (5 NF also called PJNF (projection join normal form). This case is very rare to appearance and hard to be detected practically
References:
1. Agus Sanjaya ER, S.Kom, M.Kom, slide presentation : Database and ER-Diagram