Functional Dependencies and Normal Forms · Database Management and Warehousing
4 questions · asked in 3 of 3 years (2024–2026)
MCQ 2 · MSQ 21-mark 2 · 2-mark 2
2024Questions per year2026
Questions 1–4 of 4
Let be a relational schema with functional dependency set .
Which of the following statements is correct?
Which of the following statements is correct?
Answer: (A)
Given with .
does not appear on the right side of any dependency, so no other attribute can give . So every candidate key must contain , and is not enough on its own.
Now try with one more attribute:
: gives . Then gives all 5 attributes. is a key.
: gives . Then gives all 5. is a key.
: gives . Then and give all 5. is a key.
, since determines nothing. So is not a key.
All these keys have two attributes and are minimal, because neither alone nor a single other attribute is a key. Any other key must contain plus at least one more attribute. If that attribute is , or , the set contains one of and is not minimal. If it is only , it is (or a superset that has and only), which is not a key. So the only candidate keys are .
Answer: (A)
does not appear on the right side of any dependency, so no other attribute can give . So every candidate key must contain , and is not enough on its own.
Now try with one more attribute:
: gives . Then gives all 5 attributes. is a key.
: gives . Then gives all 5. is a key.
: gives . Then and give all 5. is a key.
, since determines nothing. So is not a key.
All these keys have two attributes and are minimal, because neither alone nor a single other attribute is a key. Any other key must contain plus at least one more attribute. If that attribute is , or , the set contains one of and is not minimal. If it is only , it is (or a superset that has and only), which is not a key. So the only candidate keys are .
Answer: (A)
If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?
Answer: (C)
Suppose a decomposition does not preserve dependencies. Then the attributes on the left and right sides of some functional dependency are split across different relations. To check or enforce that dependency, the DBMS must first rebuild the combined information by joining those relations again. This is an expensive operation. It has to be run again and again (for example, on every update) to confirm that the dependency still holds.
Answer: Join
Answer: Join
Consider a database relation with attributes , and having the following functional dependencies:
Which of the following statements is/are correct?
Which of the following statements is/are correct?
One or more options are correct.
Answer: (B), (D)
Given with , , .
Keys.
: gives . Then adds , so all 7 attributes. is a candidate key, because it is a single attribute.
: gives , and then the closure of is everything. So is a superkey. It is minimal because and (neither determines anything). So is a candidate key.
, so is not a key.
No other candidate key exists. can be obtained only from itself or from , and and can be obtained only from . So every key contains or contains both and , and every such set contains or . The candidate keys are exactly and .
Options. (A) is false because is also a key. (B) is true. (C) is false because is not a key.
BCNF. For , is not a superkey, since all attributes. So this dependency breaks BCNF, and R is not in BCNF. (D) is true.
Answer: (B), (D)
Keys.
: gives . Then adds , so all 7 attributes. is a candidate key, because it is a single attribute.
: gives , and then the closure of is everything. So is a superkey. It is minimal because and (neither determines anything). So is a candidate key.
, so is not a key.
No other candidate key exists. can be obtained only from itself or from , and and can be obtained only from . So every key contains or contains both and , and every such set contains or . The candidate keys are exactly and .
Options. (A) is false because is also a key. (B) is true. (C) is false because is not a key.
BCNF. For , is not a superkey, since all attributes. So this dependency breaks BCNF, and R is not in BCNF. (D) is true.
Answer: (B), (D)
Given the relational schema and the set of functional dependencies:
Which of the following functional dependencies can be derived from the above set?
Which of the following functional dependencies can be derived from the above set?
One or more options are correct.
Answer: (A), (B), (D)
A dependency can be derived if .
(B) : and are given, so follows by union. This is derivable.
(A) and (D): starts as . adds , giving . Then and add and , so . It contains and , so and are both derivable.
(C) : is not in . No dependency has on its right side, so can be derived only from a set that already contains . This is not derivable.
Answer: (A), (B), (D)
(B) : and are given, so follows by union. This is derivable.
(A) and (D): starts as . adds , giving . Then and add and , so . It contains and , so and are both derivable.
(C) : is not in . No dependency has on its right side, so can be derived only from a set that already contains . This is not derivable.
Answer: (A), (B), (D)
Keep practising
Topics in Database Management and Warehousing
ER ModelRelational Algebra and Tuple CalculusSQLIntegrity Constraints
Functional Dependencies and Normal FormsYou are here
File Organization and IndexingData Types and Data TransformationData Warehouse Modelling