LET’S START WITH DBMS :)
Attribute closure/closure set
Attribute closure helps us for identifying candidate keys, checking for functional
dependencies, and in normalisation.
where x is an attribute or set of attribute which have all the attributes in a
X
relation which can determine X.
Ques : Consider we have a relation R with atrributes A,B,C,D,E and FD are
A-> B, B-> C ,C-> D, D-> E
1. Now according to the rule of Reflexivity all the attributes can determine theirself.
A->A, B->B , C->C , D->D, E->E
LET’S START WITH DBMS :)
Attribute closure/closure set
Ques : Consider we have a relation R with atrributes A,B,C,D,E and FD are
A-> B, B-> C ,C-> D, D-> E
1. Now according to the rule of Reflexivity all the attributes can determine theirself.
A->A, B->B , C->C , D->D, E->E
2. Now according to the rule of transivity if A determines B and B determines C, then A
can also determine C and same for all other attributes.
A->C, A-> D, A->E
B->D , B->E
C->E
LET’S START WITH DBMS :)
Attribute closure
Ques : Consider we have a relation R with atrributes A,B,C,D,E and FD are
A-> B, B-> C, C-> D, D-> E
3. Now according to the rule of UNION if as the determinant is same we can combine
dependent
For A For C For E
A-> B , A->C, A-> D, A->E , A->A C-> D, C->E , C->C E->E
A->ABCDE C->DEC
For B For D
B-> C , B->D , B->E , B->B D-> E , D->D
B->CDEB D->ED
LET’S START WITH DBMS :)
Attribute closure
Ques : Consider we have a relation R with atrributes A,B,C,D,E and FD are
A-> B, B-> C, C-> D, D-> E
4. Now lets find the closure set of attributes
A- {A,B,C,D,E}
B- {B,C,D,E}
C-{C,D,E}
D- {D,E}
E- {E}
AB - {A,B,C,D,E}