Functional Dependencies
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What does a functional dependency α→β require in every instance of a relation?
What does a functional dependency α→β require in every instance of a relation?
61 questions
- 1
What does a functional dependency α→β require in every instance of a relation?
- A
Every value of α must occur exactly once in the relation
- B
Every attribute in β must also be an attribute in α
- C
Any two tuples that agree on β must also agree on α
- D
Any two tuples that agree on α must also agree on β
Correct answer
DAny two tuples that agree on α must also agree on β
Explanation
A functional dependency states that agreement on the left-hand attributes α forces agreement on the right-hand attributes β in every instance of the schema.
- A
- 2
What is the closure F+ of a set of functional dependencies F?
- A
The set of all attributes appearing on the right-hand sides in F
- B
The set of dependencies in F that have a key on the left-hand side
- C
The set of all candidate keys of the relation
- D
The set of all functional dependencies implied by F
Correct answer
DThe set of all functional dependencies implied by F
Explanation
The closure F+ contains the dependencies that can be derived from F using the functional-dependency rules.
- A
- 3
Which statement best describes the reflexivity rule for functional dependencies?
- A
If β is a subset of α, then α→β
- B
If α→β and β→γ, then α→γ
- C
If α→β, then α→αβ
- D
If α→β and α→γ, then α→βγ
Correct answer
AIf β is a subset of α, then α→β
Explanation
Reflexivity says that a set of attributes functionally determines any subset of itself.
- A
- 4
Which statement illustrates the augmentation rule?
- A
From α→β, infer αγ→βγ
- B
From α→βγ, infer α→β
- C
From α→β and β→γ, infer α→γ
- D
From α→β and α→γ, infer α→βγ
Correct answer
AFrom α→β, infer αγ→βγ
Explanation
Augmentation adds the same set of attributes to both sides of a valid dependency: from α→β, infer αγ→βγ.
- A
- 5
Which statement illustrates the transitivity rule?
- A
From α→β, infer αγ→βγ
- B
From α→βγ, infer α→γ
- C
From α→β and β→γ, infer α→γ
- D
From α→β and α→γ, infer α→βγ
Correct answer
CFrom α→β and β→γ, infer α→γ
Explanation
Transitivity combines dependencies in which the right-hand side of one is the left-hand side of another.
- A
- 6
What does it mean that Armstrong's three basic rules are sound and complete?
- A
They apply only to dependencies whose left-hand sides are candidate keys
- B
They find all candidate keys without computing attribute closures
- C
They derive every dependency in a fixed order, and they always produce a minimal set
- D
They derive only dependencies that are valid, and they can derive every dependency implied by the given set
Correct answer
DThey derive only dependencies that are valid, and they can derive every dependency implied by the given set
Explanation
Soundness means the rules do not derive invalid dependencies; completeness means every dependency implied by the given dependencies can be derived using the rules.
- A
- 7
Given A→B and B→C, which additional dependency must be in the closure?
- A
B→AC
- B
A→C
- C
AB→C only
- D
C→A
Correct answer
BA→C
Explanation
By transitivity, A→B and B→C imply A→C.
- A
- 8
In a direct procedure for computing F+, what should happen after applying reflexivity or augmentation to a dependency?
- A
Discard the original dependencies and retain only the new ones
- B
Stop as soon as one new dependency has been found
- C
Add any newly derived dependencies to the working set and continue
- D
Use the result only if its left-hand side is a candidate key
Correct answer
CAdd any newly derived dependencies to the working set and continue
Explanation
The procedure starts with the given dependencies and adds newly derived dependencies, allowing later steps to use them.
- A
- 9
When can two dependencies be combined directly using transitivity in the iterative computation of F+?
- A
When the left-hand side of the first equals the right-hand side of the second
- B
When the right-hand side of the first equals the left-hand side of the second
- C
When the left-hand sides of both dependencies are equal
- D
When the right-hand sides of both dependencies are equal
Correct answer
BWhen the right-hand side of the first equals the left-hand side of the second
Explanation
For dependencies X→Y and Y→Z, the matching set Y allows transitivity to derive X→Z.
- A
- 10
Why does the iterative procedure for computing F+ eventually terminate?
- A
Every application of transitivity reduces the number of attributes in a dependency
- B
Augmentation can be applied only to dependencies with single attributes
- C
The procedure stops after each original dependency has been used once
- D
There are only finitely many possible functional dependencies over a finite attribute set
Correct answer
DThere are only finitely many possible functional dependencies over a finite attribute set
Explanation
With a finite set of attributes, only finitely many distinct functional dependencies are possible. The procedure stops when no new ones are added.
- A
- 11
Which conclusion follows from the union rule?
- A
If α→β, then αγ→βγ
- B
If α→β and α→γ, then α→βγ
- C
If α→β and γβ→δ, then γα→δ
- D
If α→βγ, then α→β and α→γ
Correct answer
BIf α→β and α→γ, then α→βγ
Explanation
The union rule combines dependencies with the same left-hand side by joining their right-hand sides.
- A
- 12
Which conclusion follows from the decomposition rule?
- A
If α→βγ, then α→β and α→γ
- B
If α→β and α→γ, then α→βγ
- C
If α→β, then αγ→βγ
- D
If α→β and β→γ, then α→γ
Correct answer
AIf α→βγ, then α→β and α→γ
Explanation
Decomposition splits a dependency with a combined right-hand side into separate dependencies for each part.
- A
- 13
Which conclusion follows from pseudo-transitivity?
- A
If α→β and α→γ, then α→βγ
- B
If α→β and γβ→δ, then γα→δ
- C
If α→βγ, then α→β
- D
If α→β and β→γ, then α→γ
Correct answer
BIf α→β and γβ→δ, then γα→δ
Explanation
Pseudo-transitivity combines α→β with γβ→δ to derive γα→δ.
- A
- 14
Why are union, decomposition, and pseudo-transitivity called derived rules rather than basic Armstrong axioms?
- A
They are useful only when all dependencies have a single attribute on the right
- B
They apply only to decomposed schemas and not to the original schema
- C
They are unsound shortcuts that require verification against every relation instance
- D
They follow from the three basic axioms and are not needed to establish completeness
Correct answer
DThey follow from the three basic axioms and are not needed to establish completeness
Explanation
The derived rules are sound because they follow from reflexivity, augmentation, and transitivity, but the three basic axioms suffice for completeness.
- A
- 15
What does the attribute closure α+ represent with respect to F?
- A
All functional dependencies that can be derived from α without using F
- B
All attributes that can be functionally determined by α using dependencies in F
- C
All attributes that functionally determine α under F
- D
All candidate keys that contain α
Correct answer
BAll attributes that can be functionally determined by α using dependencies in F
Explanation
The closure α+ is the set of attributes functionally determined by α under the given set of dependencies F.
- A
- 16
Why is the initial result in an algorithm for computing α+ set to α?
- A
The initial set must contain every right-hand side in F
- B
Every attribute set functionally determines its own attributes
- C
A closure can include only attributes that occur in the starting set
- D
The algorithm assumes that every attribute determines the entire schema
Correct answer
BEvery attribute set functionally determines its own attributes
Explanation
By reflexivity, the attributes in α are functionally determined by α, so they belong in its closure from the start.
- A
- 17
During the computation of α+, how should a dependency β→γ be used?
- A
Add γ only when β equals the original starting set α
- B
Add both sides only when β and γ are candidate keys
- C
If β is already contained in the current result, add γ to the result
- D
If γ is already contained in the result, add β to the result
Correct answer
CIf β is already contained in the current result, add γ to the result
Explanation
If the current result contains all of β, then the starting set determines β and, by β→γ, also determines γ.
- A
- 18
When should an algorithm for computing α+ stop?
- A
When a full pass through the dependencies adds no new attributes
- B
When every dependency in F has been used exactly once
- C
When the result contains fewer attributes than the schema
- D
When the result first contains a right-hand side from F
Correct answer
AWhen a full pass through the dependencies adds no new attributes
Explanation
The closure is complete when applying the dependencies no longer changes the result.
- A
- 19
Suppose F includes A→B, A→C, CG→H, and CG→I. What is (AG)+?
- A
AGBC
- B
ABCH
- C
AGBCHI
- D
AGHI
Correct answer
CAGBCHI
Explanation
Starting with AG, the dependencies add B and C. Since C and G are then present, they add H and I. Thus (AG)^+ = AGBCHI.
- A
- 20
What condition makes an attribute set K a superkey for relation schema R?
- A
K+ contains only attributes that also occur in K
- B
K+ contains every attribute of R
- C
K contains exactly one attribute from every candidate key
- D
K is contained in the right-hand side of every dependency
Correct answer
BK+ contains every attribute of R
Explanation
A set is a superkey if it functionally determines all attributes of the relation, which is tested by checking whether its closure covers R.
- A
- 21
What additional property distinguishes a candidate key from a superkey?
- A
Its closure must exclude all attributes outside the key
- B
It must contain every attribute that appears on a right-hand side
- C
No proper subset of it is a superkey
- D
It must have exactly one attribute
Correct answer
CNo proper subset of it is a superkey
Explanation
A candidate key is a minimal superkey: it determines the whole relation, but none of its proper subsets does.
- A
- 22
Suppose (AG)+ contains every attribute of R, but neither A+ nor G+ contains every attribute of R. What follows?
- A
AG is a candidate key
- B
A and G are each candidate keys
- C
AG is a superkey but cannot be minimal
- D
AG is not a superkey
Correct answer
AAG is a candidate key
Explanation
AG is a superkey because its closure covers R. Since neither single-attribute subset is a superkey, AG is minimal and therefore a candidate key.
- A
- 23
In the example where A+=ABCH and G appears on no right-hand side, why is AG minimal?
- A
The relation has no functional dependencies involving either attribute
- B
Neither A nor G alone determines all attributes, and G cannot be derived from other attributes
- C
Both A and G independently determine every attribute
- D
A does not appear on any left-hand side, while G determines A
Correct answer
BNeither A nor G alone determines all attributes, and G cannot be derived from other attributes
Explanation
A+ does not cover the relation, and G+=G in the example. Also, since G is never on a right-hand side, a key cannot obtain G without including it.
- A
- 24
How can the closure of attributes be used to test whether a proposed dependency α→β follows from F?
- A
Compute β+ and check whether it contains all attributes in α
- B
Compute α+ and check whether it contains all attributes in β
- C
Check whether α and β occur together in any one dependency in F
- D
Check whether α is a candidate key, regardless of β
Correct answer
BCompute α+ and check whether it contains all attributes in β
Explanation
α→β follows from F exactly when every attribute in β belongs to α+.
- A
- 25
How can attribute closures be used to obtain F+ over a schema with attribute set R?
- A
Compute only the closure of each candidate key and use it as the entire F+
- B
For each attribute set γ, compute γ+ and include dependencies γ→S for sets S contained in that closure
- C
Compute the closure of the full attribute set and include only dependencies with empty right-hand sides
- D
For each dependency, compute the closure of its right-hand side and reverse the dependency
Correct answer
BFor each attribute set γ, compute γ+ and include dependencies γ→S for sets S contained in that closure
Explanation
Computing closures for attribute sets and recording the dependencies from each set to its subsets in its closure provides a way to construct the dependencies in F+.
- A
- 26
Which condition characterizes BCNF for a relation that is already in first normal form?
- A
Every attribute belongs to exactly one candidate key
- B
Every dependency in F has a candidate key on its right-hand side
- C
Every dependency has a single attribute on each side
- D
Every dependency in F+ is trivial or has a superkey on its left-hand side
Correct answer
DEvery dependency in F+ is trivial or has a superkey on its left-hand side
Explanation
A relation is in BCNF when every functional dependency in its closure is trivial or its left-hand side is a superkey.
- A
- 27
When is a dependency α→β trivial?
- A
When α and β have no attributes in common
- B
When α is a candidate key
- C
When β is a candidate key
- D
When every attribute in β is also in α
Correct answer
DWhen every attribute in β is also in α
Explanation
A dependency is trivial when its right-hand side is a subset of its left-hand side.
- A
- 28
A relation contains the dependency department-name → building, budget, but department-name is not a superkey. What does this imply?
- A
The relation satisfies BCNF because the right side has more than one attribute
- B
The relation violates BCNF only if building and budget are candidate keys
- C
The relation satisfies BCNF because every department has a building and a budget
- D
The relation violates BCNF because the dependency is nontrivial and its left side is not a superkey
Correct answer
DThe relation violates BCNF because the dependency is nontrivial and its left side is not a superkey
Explanation
The dependency is nontrivial, and its left-hand side is not a superkey, so it violates the BCNF condition.
- A
- 29
For a BCNF-violating dependency α→β, which decomposition is described by the standard construction in the content?
- A
R1=β−α and R2=R−α
- B
R1=α∩β and R2=R−(α∪β)
- C
R1=R and R2=α∪β
- D
R1=α∪β and R2=R−(β−α)
Correct answer
DR1=α∪β and R2=R−(β−α)
Explanation
The first relation contains the attributes in α and β. The second retains the attributes of R except for the right-hand-side attributes not already in α.
- A
- 30
Why does the decomposition construction use β−α rather than removing all of β from the second relation?
- A
Removing all of β would make the first relation trivial
- B
Attributes in α∩β are always candidate keys and cannot be removed
- C
Attributes shared by α and β are already part of the left-hand side and must remain in the second schema
- D
The right-hand side must be excluded from both resulting schemas
Correct answer
CAttributes shared by α and β are already part of the left-hand side and must remain in the second schema
Explanation
Only the right-hand-side attributes not already in α are removed from the second schema; shared attributes remain because they are part of the left-hand side.
- A
- 31
If an instructor-department relation has department-name → building, budget, what is the relation formed from α∪β in the BCNF decomposition?
- A
A relation containing only building and budget
- B
A relation containing instructor ID and department-name only
- C
An instructor relation containing instructor ID, name, and salary
- D
A department relation containing department-name, building, and budget
Correct answer
DA department relation containing department-name, building, and budget
Explanation
For this violating dependency, α is department-name and β is building and budget, so α∪β forms the department relation with those three attributes.
- A
- 32
Why can the instructor relation and department relation in the example each satisfy BCNF?
- A
The decomposition removes every attribute that occurs in a dependency
- B
Neither relation contains any functional dependencies
- C
Their nontrivial dependencies have superkeys on their left-hand sides
- D
Every right-hand-side attribute is also a candidate key
Correct answer
CTheir nontrivial dependencies have superkeys on their left-hand sides
Explanation
The instructor relation has instructor ID determining its other attributes, and the department relation has department-name determining building and budget. Each left-hand side is a key of its relation.
- A
- 33
What does it mean for a decomposition of R into R1 and R2 to be lossless?
- A
Joining the projections of every instance of R reconstructs exactly that instance
- B
Every dependency of R can be checked in one decomposed relation
- C
The two relations contain no common attributes
- D
The decomposition produces fewer tuples than the original relation
Correct answer
AJoining the projections of every instance of R reconstructs exactly that instance
Explanation
A lossless decomposition allows the original relation to be recovered exactly by joining the decomposed relations, without losing or adding tuples.
- A
- 34
Which attribute coverage condition is required for a decomposition of R into R1 and R2 to be lossless?
- A
R1⊆R2
- B
R1∪R2 must contain attributes not in R
- C
R1∩R2=∅
- D
R1∪R2=R
Correct answer
DR1∪R2=R
Explanation
The union of the decomposed schemas must cover every attribute of the original schema.
- A
- 35
Which additional condition is part of the lossless-decomposition test described in the content?
- A
The common attributes must be absent from both decomposed relations
- B
The common attributes must determine only attributes outside both relations
- C
The common attributes must be a candidate key of the original relation
- D
The common attributes R1∩R2 must be a key in at least one of the two relations
Correct answer
DThe common attributes R1∩R2 must be a key in at least one of the two relations
Explanation
The intersection of the two schemas must be a key for at least one of them. Together with attribute coverage and a nonempty intersection, this ensures a lossless join under the stated test.
- A
- 36
Why does having a key in the intersection help prevent spurious tuples after a natural join?
- A
A key in the intersection ensures that the two relations have no matching tuples
- B
Each matching value on the intersection identifies at most one corresponding tuple in the relation where it is a key
- C
It makes natural join equivalent to taking the Cartesian product
- D
It forces all attributes in the original relation to be identical
Correct answer
BEach matching value on the intersection identifies at most one corresponding tuple in the relation where it is a key
Explanation
If the common attributes are a key in one relation, a tuple from the other relation can match at most one tuple there, preventing extra combinations from being introduced by the join.
- A
- 37
In the instructor-department decomposition, why is the join lossless when department-name is the common attribute and a key of the department relation?
- A
Department-name is absent from the instructor relation
- B
The instructor relation contains every department attribute
- C
The natural join removes all tuples with repeated department names
- D
Each instructor's department-name matches a unique department tuple
Correct answer
DEach instructor's department-name matches a unique department tuple
Explanation
Because department-name uniquely identifies a department tuple, each instructor tuple can be joined to at most one department tuple.
- A
- 38
Why can lossless joining work in either direction when either relation's intersection is a key?
- A
Symmetry means both relations must have identical schemas
- B
A key makes the natural join ignore the common attributes
- C
Natural join is symmetric, so either relation can supply the unique match
- D
The relation with fewer attributes always determines the other relation
Correct answer
CNatural join is symmetric, so either relation can supply the unique match
Explanation
Natural join is symmetric. If the common attributes form a key in either relation, that side supplies unique matches when the relations are joined.
- A
- 39
What does it mean for a decomposition to preserve functional dependencies?
- A
Every dependency becomes trivial in at least one decomposed relation
- B
The decomposition preserves only dependencies whose left-hand sides are candidate keys
- C
The original relation can be reconstructed without a join
- D
The dependencies can be checked on the individual decomposed relations without joining them
Correct answer
DThe dependencies can be checked on the individual decomposed relations without joining them
Explanation
Dependency preservation means dependencies can be enforced by checking the decomposed relations individually, rather than first joining them.
- A
- 40
Why is dependency preservation desirable in database design?
- A
It guarantees that no relation contains redundant data
- B
It eliminates the need for a lossless join
- C
Checking dependencies may otherwise require an expensive join
- D
It makes every decomposed relation a candidate key
Correct answer
CChecking dependencies may otherwise require an expensive join
Explanation
If a dependency can be checked only after joining relations, enforcement may require an expensive operation, so checking dependencies locally is preferable.
- A
- 41
For a schema with attributes city, street, and ZIP code, suppose CS→Z and Z→C. Why does Z→C violate BCNF?
- A
Z→C is trivial because city is part of the ZIP code
- B
Z is a superkey because CS is a key
- C
Z→C is nontrivial, and Z is not a superkey
- D
CS→Z is not a functional dependency
Correct answer
CZ→C is nontrivial, and Z is not a superkey
Explanation
The dependency Z→C is nontrivial, and the content identifies CS, not Z, as the key. Therefore, its left-hand side is not a superkey.
- A
- 42
What decomposition results from applying the BCNF construction to Z→C in the schema CSZ?
- A
ZC and SZ
- B
CSZ and C
- C
CS and CZ
- D
Z and CS
Correct answer
AZC and SZ
Explanation
The first schema is ZC, formed from the determinant and dependent attributes. Removing C from CSZ leaves SZ as the second schema.
- A
- 43
Why is the decomposition into ZC and SZ lossless under the stated test?
- A
Their intersection is empty, so no tuples can be combined incorrectly
- B
CS is a key of both decomposed relations
- C
Their intersection is Z, and Z determines the entire ZC relation
- D
The dependency CS→Z is preserved in ZC
Correct answer
CTheir intersection is Z, and Z determines the entire ZC relation
Explanation
The relations share Z. Since Z→C, it determines ZC, making the intersection a key of that relation and satisfying the lossless-join condition.
- A
- 44
Why is the dependency CS→Z not preserved by the decomposition into ZC and SZ?
- A
Its left-hand side is not a key of the original schema
- B
It is contradicted by the dependency Z→C
- C
It is trivial in ZC but not in SZ
- D
It involves attributes from both relations and cannot be checked in either one alone
Correct answer
DIt involves attributes from both relations and cannot be checked in either one alone
Explanation
Neither decomposed relation contains all three attributes C, S, and Z, so checking CS→Z requires reconstructing the larger relation by joining.
- A
- 45
Which condition defines third normal form in the content?
- A
For each nontrivial dependency α→β, every attribute in β−α belongs to some candidate key
- B
For every dependency α→β, α must be a candidate key
- C
Every dependency must be trivial or have a superkey on its right-hand side
- D
Every attribute on a right-hand side must be outside every candidate key
Correct answer
AFor each nontrivial dependency α→β, every attribute in β−α belongs to some candidate key
Explanation
Third normal form retains the trivial-dependency and superkey conditions, while also allowing each attribute in the nontrivial right-hand side to be part of a candidate key.
- A
- 46
In the additional third-normal-form condition, must all attributes in β−α belong to the same candidate key?
- A
Yes; all must belong to one particular candidate key
- B
No; none of them may belong to a candidate key
- C
No; each attribute may belong to a different candidate key
- D
Yes; but only when the left-hand side is a superkey
Correct answer
CNo; each attribute may belong to a different candidate key
Explanation
The condition is satisfied if each attribute in β−α belongs to some candidate key; those attributes need not belong to the same key.
- A
- 47
What is the relationship between BCNF and third normal form?
- A
Every BCNF relation is in third normal form, but a third-normal-form relation need not be in BCNF
- B
BCNF and third normal form are equivalent
- C
Every third-normal-form relation is in BCNF, but a BCNF relation need not be in third normal form
- D
Neither normal form implies the other
Correct answer
AEvery BCNF relation is in third normal form, but a third-normal-form relation need not be in BCNF
Explanation
BCNF satisfies the first two third-normal-form conditions, so BCNF implies third normal form. The additional third-normal-form relaxation means the converse does not always hold.
- A
- 48
Why is third normal form described as a relaxation of BCNF?
- A
It permits dependencies that are not functionally valid
- B
It requires fewer attributes to be covered by a decomposition
- C
It permits certain dependencies whose left-hand sides are not superkeys when the right-side attributes belong to candidate keys
- D
It does not require relations to be in first normal form
Correct answer
CIt permits certain dependencies whose left-hand sides are not superkeys when the right-side attributes belong to candidate keys
Explanation
Third normal form adds an alternative condition for attributes in the nontrivial right-hand side, allowing some dependencies that BCNF would reject.
- A
- 49
Which set of goals best describes normalization and decomposition?
- A
Maximize the number of candidate keys while retaining redundancy
- B
Eliminate every functional dependency and avoid all joins
- C
Minimize the number of relations, regardless of information loss
- D
Make schemas well-structured, ensure lossless reconstruction, and preferably preserve dependencies
Correct answer
DMake schemas well-structured, ensure lossless reconstruction, and preferably preserve dependencies
Explanation
Normalization aims for good schema design, lossless decomposition, and preferably dependency preservation.
- A
- 50
Which problem is specifically addressed by requiring a decomposition to be lossless?
- A
The possibility that some queries become slower
- B
The possibility that the original relation cannot be reconstructed exactly
- C
The possibility that attributes belong to multiple candidate keys
- D
The possibility that dependency checks require a join
Correct answer
BThe possibility that the original relation cannot be reconstructed exactly
Explanation
Lossless decomposition ensures the original information can be recovered by joining the decomposed relations.
- A
- 51
Which problem is specifically addressed by dependency preservation?
- A
The need to join decomposed relations merely to check a dependency
- B
The inability to recover the original tuples after decomposition
- C
The fact that a relation must satisfy first normal form
- D
The presence of attributes in more than one candidate key
Correct answer
AThe need to join decomposed relations merely to check a dependency
Explanation
Dependency preservation allows constraints to be checked on the individual relations rather than requiring a potentially expensive join.
- A
- 52
How can decomposition affect query performance even when it improves normalization?
- A
Some queries may need joins that were not required when the data was stored together
- B
A lossless decomposition prevents queries from reading the decomposed relations
- C
Every query becomes faster because each relation has fewer attributes
- D
Queries can no longer use functional dependencies
Correct answer
ASome queries may need joins that were not required when the data was stored together
Explanation
A query that previously read one relation may need to join multiple decomposed relations, increasing its cost.
- A
- 53
After separating instructor and department information, how would a query for an instructor's department building typically retrieve the building?
- A
Read the building directly from the instructor relation without a join
- B
Compute the instructor's attribute closure at query time
- C
Join the instructor relation with the department relation using department-name
- D
Join the instructor relation with itself using instructor ID
Correct answer
CJoin the instructor relation with the department relation using department-name
Explanation
The building is stored in the department relation, while the instructor's department-name is in the instructor relation, so retrieving the building requires a join.
- A
- 54
What tradeoff may arise when choosing among possible decompositions?
- A
Lossless decomposition necessarily increases insertion anomalies
- B
Preserving dependencies always makes every query cheaper
- C
A schema in BCNF cannot preserve any information
- D
Reducing redundancy may require more joins and can make some queries more expensive
Correct answer
DReducing redundancy may require more joins and can make some queries more expensive
Explanation
Design choices balance concerns such as redundancy and anomalies against the cost of joins and queries after decomposition.
- A
- 55
Why can a relation with no nontrivial functional dependencies still have serious redundancy?
- A
The absence of dependencies forces every attribute to have the same value
- B
Every relation with no dependencies must contain a candidate key for each tuple
- C
Functional dependencies measure query cost rather than data redundancy
- D
Independent multivalued facts can be repeated in combinations even when no functional dependency holds
Correct answer
DIndependent multivalued facts can be repeated in combinations even when no functional dependency holds
Explanation
Independent facts, such as an instructor's children and phone numbers, can generate repeated combinations without any nontrivial functional dependency.
- A
- 56
An instructor has multiple children and multiple phone numbers, and the relation stores instructor ID, child name, and phone. Why can adding one phone number require multiple tuple insertions?
- A
The relation's BCNF status forbids storing a new phone by itself
- B
Each phone number must be stored once for every instructor in the database
- C
The phone number may need to be paired with each of the instructor's child values
- D
A phone number must functionally determine every child's name
Correct answer
CThe phone number may need to be paired with each of the instructor's child values
Explanation
When child and phone facts are combined in tuples, a new phone may need to be repeated across tuples for the instructor's multiple children.
- A
- 57
Why can updating a phone number in the instructor-child-phone relation require repeated updates?
- A
A phone number is necessarily a candidate key for the whole relation
- B
BCNF requires every phone number to appear exactly twice
- C
The relation has no attributes that can identify an instructor
- D
The same phone value may occur in multiple tuples paired with different children
Correct answer
DThe same phone value may occur in multiple tuples paired with different children
Explanation
Because the same instructor phone can be repeated in several child-phone combinations, an update may have to change multiple tuples.
- A
- 58
Why does the instructor-child-phone example show that BCNF alone may not eliminate all undesirable redundancy?
- A
The relation can have no nontrivial functional dependencies and still repeat combinations of independent multivalued facts
- B
BCNF permits every nontrivial dependency whose left-hand side is a candidate key
- C
BCNF applies only to relations with a single-valued phone attribute
- D
The relation violates BCNF because instructor ID determines the phone number
Correct answer
AThe relation can have no nontrivial functional dependencies and still repeat combinations of independent multivalued facts
Explanation
The example can satisfy BCNF because it has no nontrivial functional dependencies, yet the independent child and phone facts still create redundancy and anomalies.
- A
- 59
How does separating child information from phone information help in the instructor example?
- A
It combines all children and phones into a single tuple per instructor
- B
It stores the instructor's children and phones in separate relations, avoiding repeated child-phone combinations
- C
It removes the need to represent multiple children or multiple phones
- D
It makes each child determine every phone number
Correct answer
BIt stores the instructor's children and phones in separate relations, avoiding repeated child-phone combinations
Explanation
Separate relations represent the instructor's child values and phone values independently, preventing unnecessary repetitions of their combinations.
- A
- 60
Why would moving from BCNF to third normal form not solve the instructor-child-phone redundancy problem?
- A
Third normal form requires all children to share one phone number
- B
The relation cannot be in third normal form if it is in BCNF
- C
Third normal form forbids decomposing relations with multivalued facts
- D
The relation already has no nontrivial functional dependencies, so the problem is not addressed by those dependency conditions
Correct answer
DThe relation already has no nontrivial functional dependencies, so the problem is not addressed by those dependency conditions
Explanation
The relation is already in BCNF and therefore in third normal form. Its redundancy comes from independent multivalued facts, not from a violating functional dependency.
- A
- 61
Which higher normal form is identified as relevant to the independent multiple-children and multiple-phones problem?
- A
Second normal form
- B
First normal form
- C
Third normal form
- D
Fourth normal form
Correct answer
DFourth normal form
Explanation
The content points to fourth normal form as a higher normal form relevant to redundancy caused by independent multivalued facts.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.