NORMALIZATION
NORMALIZATION
1 C1 1000
2 C2 1500
1 C4 2000
4 C3 1000
4 C1 1000
2 C5 2000
1 C1 1000
2 C2 1500
1 C4 2000
4 C3 1000
4 C1 1000
2 C5 2000
Candidate Key ?
Second Normal Form
1. Course_ID -> Course_Fee
2. Stud_ID Course_ID -> Course_Fee
OR
A relation is in 3NF if at least one of the following condition holds in every non-trivial
function dependency X –> Y
1. X is a super key.
2. Y is a prime attribute (each element of Y is part of some candidate key).
Third Normal Form
Stud_ID STUD_NAME STUD_STATE STUD_COUNTRY STUD_AGE
1 RAM UP INDIA 20
2 RAM MP INDIA 19
3 SHYAM MP INDIA 21
Ans. ?
Third Normal Form
In above relation STUDENT, FD set:
{STUD_ID -> STUD_NAME, STUD_ID -> STUD_STATE, STUD_STATE ->
STUD_COUNTRY, STUD_ID -> STUD_AGE}
1. EMP_ID → EMP_COUNTRY
2. EMP_DEPT → {DEPT_TYPE, EMP_DEPT_NO}
2. Divide all attributes into two categories: prime attributes and non-
prime attributes.
3. Check for 1st normal form then 2nd and so on. If it fails to satisfy the
nth normal form condition, the highest normal form will be n-1.
EMP_ID EMP_COU EMP_DEPT DEPT_TYP EMP_DEPT
NTRY E _NO
264 India Designing D394 283
264 India Testing D394 300
364 UK Stores D283 232
364 UK Developing D283 549
Step 3. BCNF – ?
3NF – ?
2NF – ?
1NF – ?
Q35. Find the highest normal form of a relation R(A,B,C,D,E) with FD set {A-
>D, B->A, BC->D, AC->BE}.
Ans.
Step 1. Possible Candidate Keys – {AC} and {BC}
Step 3.
BCNF – No
3NF – No
2NF – No
1NF – Yes
Step 3. 1NF – ?
2NF – ?
3NF – ?
BCNF – ?
Q36. Find the highest normal form of a relation R(A,B,C,D,E) with FD set
{B->A, A->C, BC->D, AC->BE}
Ans.
Step 1. Possible Candidate Keys – {A} and {B}
A. 2NF
B. 3NF
C. BCNF
D. 4NF
Q39. The relation scheme Student_Performance (name, courseNo, rollNo, grade) has
the following functional dependencies:
name, courseNo → grade
rollNo, courseNo → grade
name → rollNo
rollNo → name
The highest normal form of this relation scheme is
A. 2NF
B. 3NF
C. BCNF
D. 4NF
Q40. Every time attribute A appears, it is matched with the same value
of attribute B, but not the same value of attribute C. Therefore, it is true
that:
a) A -> B
b) A -> C
c) A -> (B,C)
Q40. Every time attribute A appears, it is matched with the same value
of attribute B, but not the same value of attribute C. Therefore, it is true
that:
a) A -> B
b) A -> C
c) A -> (B,C)
Q41. Let R(A, B, C, D, E, F, G) be a relational schema in which the
following functional dependencies are known to hold: AB ->CD, DE ->F,
C ->E, F ->C and B ->G
The relational schema is
a) not in 2 NF
b) in 2NF but not in 3NF
c) in 3NF
Q41. Let R(A, B, C, D, E, F, G) be a relational schema in which the
following functional dependencies are known to hold: AB ->CD, DE ->F,
C ->E, F ->C and B ->G
The relational schema is
a) not in 2 NF
b) in 2NF but not in 3NF
c) in 3NF