Normalization
Normalization
1 Sai C C++
3 Onkar C DBMS
• 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
Solve the following question:
•AB -> C
•C -> D
•BD -> E for a relation R(A,B,C,D,E).
RollNo
System_Used
Functional Dependence
Course_Code Hourly_Rate
Diagram
Course_Name
Store id location
1 Delhi
2 Banglore
3 mumbai
Second Normal Form (2NF)
Example: Let's assume, a school can store the data of teachers and the
subjects they teach. In a school, a teacher can teach more than one subject.
Question
A relation R(ABCDEF) where Function dependencies are given
below:
C->F, E->A, EC->D,A->B
Candidate Key- AB
Prime Attributes- A,B
Non- Prime Attributes- C,D