Int 306 Normalization
Int 306 Normalization
• A+ -> ABCD
• B+ -> BCD
• C+ -> CD
• D+ -> D So, candidate key (A)
• Transitive Property
• AB+ -> ABCD
• A candidate key, but AB cannot be
• So, A is only candidate key.
• If you have B with it then it is superkey(B).
• Prime attribute: A
• Non Prime attribute: B,C,D
Another Example
• R(ABCD)
• FD ={A->B,B->C,C->D,D->A}
• A+ -> {ABCD}
• B+ -> {BCDA}
• C+ -> {CDAB}
• D+ -> {ABCD}
• Candidate Key{A,B,C,D}
• Prime Attributes: attributes that help in making
primary key .So, {A,B,C,D} are all prime attributes
Functional Dependency
• Method to describe relationship between attributes
• Like X -> Y --- X determines Y or Y is determined by X
• X- Determinant
• Y- Dependent
Store id location
1 Delhi
2 Banglore
3 mumbai
Second Normal Form (2NF)