Functional Dependency & Normalization
Functional Dependency & Normalization
Functional Dependency & Normalization
NORMALIZATION
DEPENDENCY
42 abc 17
43 pqr 18
44 xyz 18
45 abc 19
1 1 540
2 1 545
1 2 200
2 2 201
1 1 540
2 2 201
3 1 542
From the table, we can clearly see that neither supplier_id nor item_id
can uniquely determine the price
but both supplier_id and item_id together can do so.
So we can say that price is fully functionally dependent on
{ supplier_id, item_id }.
This summarizes and gives our fully functional dependency −
{ supplier_id , item_id } -> price
PARTIAL FUNCTIONAL DEPENDENCY :
2. Decompositionrule is also known as project rule. It is the reverse of union rule.This Rule says, if X
determines Y and Z, then X determines Y and X determines Z separately.
If X → YZ then X → Y and X → Z (splitting of right side is possible) but vice-versa is not
true
Eg: If X → Y Z
(Name, Marks) → Dept, Course
Then Name, Marks → Dept and Name, Marks → Course
PSEUDO TRANSITIVE RULE
• The entity integrity constraint states that primary key value can't be
null.
• This is because the primary key value is used to identify individual
rows in relation and if the primary key has a null value, then we can't
identify those rows.
• A table can contain a null value other than the primary key field.
EXAMPLE:
REFERENTIAL INTEGRITY CONSTRAINTS
• Keys are the entity set that is used to identify an entity within its entity
set uniquely.
• An entity set can have multiple keys, but out of which one key will be
the primary key. A primary key can contain a unique and null value in
the relational table.
ATTRIBUTE CLOSURE