Normal Form · Databases
35 questions · asked in 24 of 27 years (2000–2026)
MCQ 31 · MSQ 41-mark 22 · 2-mark 13
2000Questions per year2026
Questions 16–20 of 35
Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values.
is a set of functional dependencies (FDs) so that is exactly the set of FDs that hold for R.
How many candidate keys does the relation R have?
is a set of functional dependencies (FDs) so that is exactly the set of FDs that hold for R.
How many candidate keys does the relation R have?
Answer: (B)
is never on a right side, so every key must contain . Now the closures:
- , so is a key.
- : , then , then . This gives all attributes except , so is a key.
- : , then , . All except , so is a key.
- : , then , , . All except , so is a key.
- alone is not a key. Adding only , and does not help: . So no other minimal key exists.
Candidate keys: , which is 4 keys.
Answer: (B)
- , so is a key.
- : , then , then . This gives all attributes except , so is a key.
- : , then , . All except , so is a key.
- : , then , , . All except , so is a key.
- alone is not a key. Adding only , and does not help: . So no other minimal key exists.
Candidate keys: , which is 4 keys.
Answer: (B)
Which of the following is TRUE?
Answer: (C)
BCNF is a stronger form than 3NF. Each relation in BCNF is also in 3NF, but a 3NF relation need not be in BCNF.
Option 2 talks about 2NF (no partial dependency), and not 3NF.
Answer: Every relation in BCNF is also in 3NF
Option 2 talks about 2NF (no partial dependency), and not 3NF.
Answer: Every relation in BCNF is also in 3NF
Consider the following relational schema:
Suppliers(sid:integer, sname:string, city:string, street:string)
Parts(pid:integer, pname:string, color:string)
Catalog(sid:integer, pid:integer, cost:real) Assume that, in the suppliers relation above, each supplier and each street within a city has a unique name, and (sname, city) forms a candidate key. No other functional dependencies are implied other than those implied by primary and candidate keys. Which one of the following is TRUE about the above schema?Answer: (A)
A relation is in BCNF when, for every non-trivial dependency that holds, is a superkey. The question says the only dependencies are those implied by the primary and candidate keys.
Suppliers: the keys are sid and (sname, city). So the dependencies are sid (sname, city, street) and (sname, city) (sid, street). Every left side is a key, so it is in BCNF. Unique street names within a city do not add a dependency from street to anything.
Parts: the only dependency is pid (pname, color), and pid is the key. BCNF holds.
Catalog: the only dependency is (sid, pid) cost, and (sid, pid) is the key. BCNF holds.
Every relation is in BCNF, so the schema is in BCNF (and so also in 3NF and 2NF). Options (B), (C) and (D) all say the schema fails BCNF or a lower form, which is not so.
Answer: (A)
Suppliers: the keys are sid and (sname, city). So the dependencies are sid (sname, city, street) and (sname, city) (sid, street). Every left side is a key, so it is in BCNF. Unique street names within a city do not add a dependency from street to anything.
Parts: the only dependency is pid (pname, color), and pid is the key. BCNF holds.
Catalog: the only dependency is (sid, pid) cost, and (sid, pid) is the key. BCNF holds.
Every relation is in BCNF, so the schema is in BCNF (and so also in 3NF and 2NF). Options (B), (C) and (D) all say the schema fails BCNF or a lower form, which is not so.
Answer: (A)
Let R (A, B, C, D, E, P, G) be a relational schema in which the following functional dependencies are known to hold:
and .
The relational schema R is
and .
The relational schema R is
Answer: (D)
Find the key. and appear on no right side, so both are in every key. : gives ; gives ; gives ; gives . So is all attributes and is the only candidate key. The prime attributes are ; all others, including , are non-prime.
: is a proper part of the key and is non-prime. This is a partial dependency, so R is not in 2NF.
Answer: (D)
: is a proper part of the key and is non-prime. This is a partial dependency, so R is not in 2NF.
Answer: (D)
Let be a relational schema in which the following functional dependencies are known to hold:
and .
The decomposition of into
and .
The decomposition of into
Answer: (A)
The given FDs are . Note that , so , and , so .
Lossless join:
- Join and : the common attribute is , and makes a key of . So this join is lossless and gives .
- Join and : the common attribute is , and holds, so is a key of . So this join is also lossless.
Dependency preserving:
- is in .
- is in .
- is in .
- is not in any one relation, but it follows from the kept FDs: holds in (it follows from and ), and holds in . So gives .
The decomposition is lossless and dependency preserving.
Answer: (A)
Lossless join:
- Join and : the common attribute is , and makes a key of . So this join is lossless and gives .
- Join and : the common attribute is , and holds, so is a key of . So this join is also lossless.
Dependency preserving:
- is in .
- is in .
- is in .
- is not in any one relation, but it follows from the kept FDs: holds in (it follows from and ), and holds in . So gives .
The decomposition is lossless and dependency preserving.
Answer: (A)
Keep practising