DB Part1
DB Part1
Functional Dependency
1. consider R(ABC) {a1b1c1, a1b1c2, a1b2c2, a2b1c3}. How many non trivial fds are
satisfied on given R
a)2 b)3 c)4 d)none
1 5 3 (c) YZ → X and X → Z
(d) XZ → Y and Y → X.
1 6 3
3 2 2
2. R (abc)
We conclude that
A B C
1 1 1 (a) A →B and B →C.
1 1 0 (b) A B and B C.
2 3 2
(c) B C.
2 3 2
(d) A B and B C.
Attribute Closure
1. r(abcdef) f{a→ce,b→d,c→ad,bd→ef} find ab+
FDS ISSR,Gate Faculty, CN,DBMS,OS VIZAG
2006, 2M
1. The following functional dependencies are given:
{ AB → CD AF → D DE → F C → G, F → E,G → A.}
CANDIDATE KEYS
3. r(abcd) with set of fds{ab→c, c→d, d→a}. list all candidate keys of R?
a)ab, bc, bd b)ab,bc,cd c)ab,bc,ad d)none
17. R(xyzw) f{y> w, xy→z} where the symbol > means y→w and w→y. what are
the candidate keys?
a)xy and zw b)xw and yz c)xy and wx d)xy and yz
6. Consider a relational table with single record from each registered student with
the following attributes :
FDS ISSR,Gate Faculty, CN,DBMS,OS VIZAG
10. find Maximum Number of super keys for the relation schema (E,F,G,H) when E is
candidate keyfor the relation.
SUPER KEYS
FDS ISSR,Gate Faculty, CN,DBMS,OS VIZAG
DECOMPOSITION
1. r(abcd) f={a→b, b→c, c→d,d→a}. the decomposition R1(ABC) R2(bc) R3(cd) is?
a) lossy & dp b)lossless & dp c)not dp & lossless d)not lossless and not dp.
2. R(abcd) f{ab→cd, b→c,c→d} is decomposed into BCNF R1(ab) r2(bc) r3(cd). The
decomposition is?
a) lossy & dp b)lossless & dp c)not dp & lossless d)not lossless and not dp.
4. R(abcd) is relation which of the following doesnot have either lossless or d.p. bcnf
decomposition.
a)a→b,b→cd b)ab→c,c→d c)a→bc,c→d
d)ab→cd,c→a
a) lossy & dp b)lossless & dp c)not dp & lossless d)not lossless and not dp.
7. F{a→c,ac→d,e→ad,a→h} g{a→cd,e→ah}
a)f=g b)f covers g c)g covers f d)none
ans: b
8. f{a→c,ac→d,e→ad,e→h} g{a→cd,e→ah}
a)f=g b)f covers g c)g covers f d)none
ans: b
ans: a
2005, 2M
3. R(abcde) f{a→b,c; cd→e,b→d,e→a} which of the following does not hold?
a) cd→ac b)bd→cd c)bc→cd d)ac→bc
2015
1. Consider relation X(PQRSTU) with the following functional
dependencies
F{ PR→ST, PSU→QR}
Which of the following is trivial functional dependency in F+, where F+ is
closure of F?
a){PR→ST} b){PR→RT} c){PS→S} d){PSU→Q}
Gt, 2017
ANS: A
Prime Attributes
1. R(abcde) f{a→bc,bc→d,d→ea}. How many non prime attributes are there?
a)0 b)1 c)2 d)none