You are on page 1of 4

FIRST VIDEO SUMMARY

Basic concept of normalization


1st Normal Form of DBMS NORMALIZATION

 Scable table design which can be easily extended


 If your table is not even in 1st normal form, its considered poor DB design (its very BAD)
Every table in database should at least follow the 1st normal form, always.
How to achieve 1st normal form?
There are 4 basic rules that a table should follow to be in 1 st normal form

 Rule 1
 Each column should contain atomic values
 Entries like x,y and w,x violate this rule (its not true)
 Rule 2
 A column should contain values that are of the same type. For example in DB date of
birds must be same don’t write with another character
 Don’t inter-mix different types of values in any column
 Rule 3
 Each column should have a unique name. for example the name of field don’t same, but
write with another name.
 Same names leads to confusion at the time of data retrival
 Rule 4
 Order in which data is saved doesn’t matter
 Using sql query, you can easily fetch data in any order from a table

Id Nama hobbi
1 Alvin Berkuda
1 Aris Membaca Buku
2 Gita Memanah
3 Ozy Bowling
3 Doni Memancing

SECOND SUMMARY VIDEO


2ND Normal form
For a table to be in the second normal form must be find two condition :
1. It should be in 1st normal form
2. It should not have any partical dependencies
What is the dependencies ? yes, check thio out for example below :
Id_trx Book_title Buku_id Peminjam_id Penerbit_id Penerbit_name
1111 C# B00k1 P001 P01 Roy
2222 Java B00k2 P002 P002 Esa
3333 C++ B00k3 P003 P003 Gabe
4444 PHP B00k4 P004 P004 Ansenk

Id_trx Buku_id Peminjam_id Penerbit


11 B00k1 P001 P001
22 B00k2 P002 P002

Table student_id is dependencies with using primary key, so the database is dependence.

THIRD VIDEO SUMMARY


3NF Normal Form
Database normalization in the form of 3NF aims to eliminate all attributes or fields that are not related to
the primary key. Thus there is no transitive dependency on each key candidate. The terms of the third
normal form or 3NF are:

 Meet all requirements of the second normal form.


 Delete a column that does not depend on the primary key.

For more details, look directly at the example :


Order_id Cust_id Harga Jumlah Total
1122 C112 12000 1 12000
1133 C121 6000 1 6000

Order_id Cust_id Harga Jumlah


1122 C112 12000 1
1133 C121 6000 1

In the first table above, are all columns completely dependent on the primary key? certainly not, it's just
that there is one field that is totally dependent on price and quantity, the total can be generated by
multiplying the price and the amount. The 3NF form in the table above can be done by removing the
Total field.
FOURTH VIDEO SUMMARY
BCNF (BOYCE-COD NORMAL FORM)
A database normalization technique that is often called 3.5NF, has a very close relationship with the 3NF
form. Basically it is to handle anomalies and overlooping that cannot be handled in the form of 3NF.
Database normalization of this form depends on the case provided, not all tables must be normalized in
the form of BCNF.
BCNF has a force that is stronger than the third normal form. The conditions for becoming BCNF,
namely:

 It must be in the form of 1NF, 2NF, 3NF and relations on BCNF that is optimizing if each
determinant between the attributes of a relation is a key relation.
 The relation must be in the third normal form and each attribute must depend on the function of
the superkey attribute.
 The table must have Functional Dependency with X  Y notation; X is the superkey in the table
 All multivalue dependency attributes are also functional dependencies.

For example :

Id_pinjam Sid Bid date


P1 1234 Bk01 11/11/2018
P2 5678 Bk02 12/11/2018

Id_pinjam Sid
P01 1234
P02 5678

Id_pinjam Bid date


P01 Bk01 11/11/2018
P02 Bk02 12/11/2018

FIVETH VIDEO SUMMARY


4NF (FOURTH NORMAL FORM)
The Fourth Normal Form (4 NF) rule is to eliminate multivalue dependencies which are not functional
dependencies. The table below illustrates the violation of the fourth normalization rule.
The following entities: employees, skills and language. An employee can have several skills and know
several languages. There are two relationships, one between employees and skills, and one between
employees and language.
Empno(primary) Skill Languange(primary)
001 Data modelling English
002 Database design Arabic

Empno(primary key) Skill


001 Data modelling
002 Database design

Empno(primary key) Languange


001 English
002 Arabic

You might also like